/* Options: Date: 2025-09-08 08:46:22 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: GetMailchimpSyncExecution.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class MailchimpSyncExecution extends BaseModel implements IBaseModelCreated, IConvertible { int? Id; // @Required() int? SuccessCount; String? FailedCompanyIds; String? Status; // @Required() DateTime? CreatedDate; MailchimpSyncExecution({this.Id,this.SuccessCount,this.FailedCompanyIds,this.Status,this.CreatedDate}); MailchimpSyncExecution.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; SuccessCount = json['SuccessCount']; FailedCompanyIds = json['FailedCompanyIds']; Status = json['Status']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'SuccessCount': SuccessCount, 'FailedCompanyIds': FailedCompanyIds, 'Status': Status, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }); getTypeName() => "MailchimpSyncExecution"; TypeContext? context = _ctx; } class MailchimpSyncExecutionQueryResponse implements IConvertible { int? MailchimpSyncExecutionId; int? SuccessCount; String? FailedCompanyIds; String? Status; DateTime? CreatedDate; MailchimpSyncExecutionQueryResponse({this.MailchimpSyncExecutionId,this.SuccessCount,this.FailedCompanyIds,this.Status,this.CreatedDate}); MailchimpSyncExecutionQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MailchimpSyncExecutionId = json['MailchimpSyncExecutionId']; SuccessCount = json['SuccessCount']; FailedCompanyIds = json['FailedCompanyIds']; Status = json['Status']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => { 'MailchimpSyncExecutionId': MailchimpSyncExecutionId, 'SuccessCount': SuccessCount, 'FailedCompanyIds': FailedCompanyIds, 'Status': Status, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }; getTypeName() => "MailchimpSyncExecutionQueryResponse"; TypeContext? context = _ctx; } abstract class IBaseModelCreated { DateTime? CreatedDate; } // @Route("/mailchimp/syncExecutions", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class GetMailchimpSyncExecution extends QueryDb2 implements IReturn>, 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.") DateTime? CreatedDate; GetMailchimpSyncExecution({this.CreatedDate}); GetMailchimpSyncExecution.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "GetMailchimpSyncExecution"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'MailchimpSyncExecution': TypeInfo(TypeOf.Class, create:() => MailchimpSyncExecution()), 'MailchimpSyncExecutionQueryResponse': TypeInfo(TypeOf.Class, create:() => MailchimpSyncExecutionQueryResponse()), 'IBaseModelCreated': TypeInfo(TypeOf.Interface), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'GetMailchimpSyncExecution': TypeInfo(TypeOf.Class, create:() => GetMailchimpSyncExecution()), 'List': TypeInfo(TypeOf.Class, create:() => []), });