/* Options: Date: 2025-12-14 05:19:14 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UnsubscribeEmailTopic.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UnsubscribeEmailTopicResponse implements IConvertible { String? Email; String? ConfigurationSet; String? Topic; bool? Unsubscribed; UnsubscribeEmailTopicResponse({this.Email,this.ConfigurationSet,this.Topic,this.Unsubscribed}); UnsubscribeEmailTopicResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Email = json['Email']; ConfigurationSet = json['ConfigurationSet']; Topic = json['Topic']; Unsubscribed = json['Unsubscribed']; return this; } Map toJson() => { 'Email': Email, 'ConfigurationSet': ConfigurationSet, 'Topic': Topic, 'Unsubscribed': Unsubscribed }; getTypeName() => "UnsubscribeEmailTopicResponse"; TypeContext? context = _ctx; } // @Route("/unsubscribe", "POST") class UnsubscribeEmailTopic implements IReturn, IConvertible, IPost { /** * The email address to unsubscribe. */ // @ApiMember(Description="The email address to unsubscribe.", IsRequired=true) String? Email; /** * Configuration set identifier used when sending the email. */ // @ApiMember(Description="Configuration set identifier used when sending the email.", IsRequired=true) String? ConfigurationSet; /** * Topic identifier used when sending the email. */ // @ApiMember(Description="Topic identifier used when sending the email.", IsRequired=true) String? Topic; /** * Verification token from the unsubscribe link. */ // @ApiMember(Description="Verification token from the unsubscribe link.", IsRequired=true) String? Token; UnsubscribeEmailTopic({this.Email,this.ConfigurationSet,this.Topic,this.Token}); UnsubscribeEmailTopic.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Email = json['Email']; ConfigurationSet = json['ConfigurationSet']; Topic = json['Topic']; Token = json['Token']; return this; } Map toJson() => { 'Email': Email, 'ConfigurationSet': ConfigurationSet, 'Topic': Topic, 'Token': Token }; createResponse() => UnsubscribeEmailTopicResponse(); getResponseTypeName() => "UnsubscribeEmailTopicResponse"; getTypeName() => "UnsubscribeEmailTopic"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'UnsubscribeEmailTopicResponse': TypeInfo(TypeOf.Class, create:() => UnsubscribeEmailTopicResponse()), 'UnsubscribeEmailTopic': TypeInfo(TypeOf.Class, create:() => UnsubscribeEmailTopic()), });