/* Options: Date: 2025-09-22 22:13:45 Version: 6.21 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://accounts.dev.healthmonix.com/api/ //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateApplication.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Application implements IConvertible { String? id; String? name; String? token; String? purchaseUrl; bool? isActive; Application({this.id,this.name,this.token,this.purchaseUrl,this.isActive}); Application.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; token = json['token']; purchaseUrl = json['purchaseUrl']; isActive = json['isActive']; return this; } Map toJson() => { 'id': id, 'name': name, 'token': token, 'purchaseUrl': purchaseUrl, 'isActive': isActive }; getTypeName() => "Application"; TypeContext? context = _ctx; } class CreateApplicationResponse implements IConvertible { String? message; Application? application; HttpStatusCode? status; ResponseStatus? responseStatus; CreateApplicationResponse({this.message,this.application,this.status,this.responseStatus}); CreateApplicationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { message = json['message']; application = JsonConverters.fromJson(json['application'],'Application',context!); status = JsonConverters.fromJson(json['status'],'HttpStatusCode',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'message': message, 'application': JsonConverters.toJson(application,'Application',context!), 'status': JsonConverters.toJson(status,'HttpStatusCode',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CreateApplicationResponse"; TypeContext? context = _ctx; } // @Route("/applications", "POST") class CreateApplication implements IReturn, IConvertible { String? id; String? name; String? purchaseUrl; CreateApplication({this.id,this.name,this.purchaseUrl}); CreateApplication.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; purchaseUrl = json['purchaseUrl']; return this; } Map toJson() => { 'id': id, 'name': name, 'purchaseUrl': purchaseUrl }; createResponse() => CreateApplicationResponse(); getResponseTypeName() => "CreateApplicationResponse"; getTypeName() => "CreateApplication"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'accounts.dev.healthmonix.com', types: { 'Application': TypeInfo(TypeOf.Class, create:() => Application()), 'CreateApplicationResponse': TypeInfo(TypeOf.Class, create:() => CreateApplicationResponse()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'CreateApplication': TypeInfo(TypeOf.Class, create:() => CreateApplication()), });