/* Options: Date: 2025-10-13 06:19:22 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCompanyMailchimpSyncExecution.* //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; String? Errors; bool? Manual; String? CompanyId; bool? BookMore; // @Required() DateTime? CreatedDate; MailchimpSyncExecution({this.Id,this.SuccessCount,this.FailedCompanyIds,this.Status,this.Errors,this.Manual,this.CompanyId,this.BookMore,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']; Errors = json['Errors']; Manual = json['Manual']; CompanyId = json['CompanyId']; BookMore = json['BookMore']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'SuccessCount': SuccessCount, 'FailedCompanyIds': FailedCompanyIds, 'Status': Status, 'Errors': Errors, 'Manual': Manual, 'CompanyId': CompanyId, 'BookMore': BookMore, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }); getTypeName() => "MailchimpSyncExecution"; TypeContext? context = _ctx; } class MailchimpCompanySyncExecutionQueryResponse implements IConvertible { int? MailchimpSyncExecutionId; int? SuccessCount; String? FailedCompanyIds; String? Status; bool? Manual; String? Errors; DateTime? CreatedDate; MailchimpCompanySyncExecutionQueryResponse({this.MailchimpSyncExecutionId,this.SuccessCount,this.FailedCompanyIds,this.Status,this.Manual,this.Errors,this.CreatedDate}); MailchimpCompanySyncExecutionQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MailchimpSyncExecutionId = json['MailchimpSyncExecutionId']; SuccessCount = json['SuccessCount']; FailedCompanyIds = json['FailedCompanyIds']; Status = json['Status']; Manual = json['Manual']; Errors = json['Errors']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); return this; } Map toJson() => { 'MailchimpSyncExecutionId': MailchimpSyncExecutionId, 'SuccessCount': SuccessCount, 'FailedCompanyIds': FailedCompanyIds, 'Status': Status, 'Manual': Manual, 'Errors': Errors, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!) }; getTypeName() => "MailchimpCompanySyncExecutionQueryResponse"; TypeContext? context = _ctx; } abstract class IBaseModelCreated { DateTime? CreatedDate; } // @Route("/company/mailchimp/syncExecutions", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class GetCompanyMailchimpSyncExecution 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; /** * 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; GetCompanyMailchimpSyncExecution({this.CreatedDate,this.CompanyId}); GetCompanyMailchimpSyncExecution.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); CompanyId = json['CompanyId']; return this; } Map toJson() => super.toJson()..addAll({ 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'CompanyId': CompanyId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "GetCompanyMailchimpSyncExecution"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'MailchimpSyncExecution': TypeInfo(TypeOf.Class, create:() => MailchimpSyncExecution()), 'MailchimpCompanySyncExecutionQueryResponse': TypeInfo(TypeOf.Class, create:() => MailchimpCompanySyncExecutionQueryResponse()), 'IBaseModelCreated': TypeInfo(TypeOf.Interface), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'GetCompanyMailchimpSyncExecution': TypeInfo(TypeOf.Class, create:() => GetCompanyMailchimpSyncExecution()), 'List': TypeInfo(TypeOf.Class, create:() => []), });