/* Options: Date: 2025-12-06 08:56:31 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cochraneplus-api-dev.happen.zone //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Migrate.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiServiceResponse implements IServiceResponse, IConvertible { String? description; String? heading; bool? wasSuccessful; dynamic? modelState; ApiServiceResponse({this.description,this.heading,this.wasSuccessful,this.modelState}); ApiServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { description = json['description']; heading = json['heading']; wasSuccessful = json['wasSuccessful']; modelState = JsonConverters.fromJson(json['modelState'],'dynamic',context!); return this; } Map toJson() => { 'description': description, 'heading': heading, 'wasSuccessful': wasSuccessful, 'modelState': JsonConverters.toJson(modelState,'dynamic',context!) }; getTypeName() => "ApiServiceResponse"; TypeContext? context = _ctx; } class MigrateResponse extends ApiServiceResponse implements IConvertible { int? recordsUpdated; int? recordsDeleted; int? recordsAdded; MigrateResponse({this.recordsUpdated,this.recordsDeleted,this.recordsAdded}); MigrateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); recordsUpdated = json['recordsUpdated']; recordsDeleted = json['recordsDeleted']; recordsAdded = json['recordsAdded']; return this; } Map toJson() => super.toJson()..addAll({ 'recordsUpdated': recordsUpdated, 'recordsDeleted': recordsDeleted, 'recordsAdded': recordsAdded }); getTypeName() => "MigrateResponse"; TypeContext? context = _ctx; } // @Route("/migrate", "GET") class Migrate implements IReturn, IConvertible, IGet { Migrate(); Migrate.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => MigrateResponse(); getResponseTypeName() => "MigrateResponse"; getTypeName() => "Migrate"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cochraneplus_api_dev.happen.zone', types: { 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'MigrateResponse': TypeInfo(TypeOf.Class, create:() => MigrateResponse()), 'Migrate': TypeInfo(TypeOf.Class, create:() => Migrate()), });