/* Options: Date: 2025-01-18 07:37:53 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetMailchimpProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class MailchimpConfig implements IConvertible { String? MailChimpApiKey; String? MailChimpAudienceId; MailchimpConfig({this.MailChimpApiKey,this.MailChimpAudienceId}); MailchimpConfig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MailChimpApiKey = json['MailChimpApiKey']; MailChimpAudienceId = json['MailChimpAudienceId']; return this; } Map toJson() => { 'MailChimpApiKey': MailChimpApiKey, 'MailChimpAudienceId': MailChimpAudienceId }; getTypeName() => "MailchimpConfig"; TypeContext? context = _ctx; } // @Route("/mailchimp/profile", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class GetMailchimpProfile implements IReturn, ICompany, IConvertible, IGet { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; GetMailchimpProfile({this.CompanyId}); GetMailchimpProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => MailchimpConfig(); getResponseTypeName() => "MailchimpConfig"; getTypeName() => "GetMailchimpProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'MailchimpConfig': TypeInfo(TypeOf.Class, create:() => MailchimpConfig()), 'GetMailchimpProfile': TypeInfo(TypeOf.Class, create:() => GetMailchimpProfile()), });