/* Options: Date: 2025-07-18 02:28:56 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://hcbtas-q-albamfs-api.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ConsentDefinitionGetReq.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class Entity implements IEntity, IConvertible { String? id; Entity({this.id}); Entity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; getTypeName() => "Entity"; TypeContext? context = _ctx; } class Entity implements IConvertible { String? logoUri; String? name; ContactDetails? contactDetails; Entity({this.logoUri,this.name,this.contactDetails}); Entity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { logoUri = json['logoUri']; name = json['name']; contactDetails = JsonConverters.fromJson(json['contactDetails'],'ContactDetails',context!); return this; } Map toJson() => { 'logoUri': logoUri, 'name': name, 'contactDetails': JsonConverters.toJson(contactDetails,'ContactDetails',context!) }; getTypeName() => "Entity"; TypeContext? context = _ctx; } class ConsentDefinition extends Entity implements IConvertible { String? country; Map? items; DateTime? fromDate; ConsentDefinition({this.country,this.items,this.fromDate}); ConsentDefinition.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); country = json['country']; items = JsonConverters.toStringMap(json['items']); fromDate = JsonConverters.fromJson(json['fromDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'country': country, 'items': items, 'fromDate': JsonConverters.toJson(fromDate,'DateTime',context!) }); getTypeName() => "ConsentDefinition"; TypeContext? context = _ctx; } // @Route("/consentdefinition", "GET") // @Route("/consentdefinition/{Id}", "GET") // @Route("/consentdefinition/country", "GET") // @Route("/consentdefinition/country/{Country}", "GET") class ConsentDefinitionGetReq implements IReturn, IConvertible { String? country; String? id; ConsentDefinitionGetReq({this.country,this.id}); ConsentDefinitionGetReq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { country = json['country']; id = json['id']; return this; } Map toJson() => { 'country': country, 'id': id }; createResponse() => ConsentDefinition(); getResponseTypeName() => "ConsentDefinition"; getTypeName() => "ConsentDefinitionGetReq"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'Entity': TypeInfo(TypeOf.Class, create:() => Entity()), 'ContactDetails': TypeInfo(TypeOf.Class, create:() => ContactDetails()), 'ConsentDefinition': TypeInfo(TypeOf.Class, create:() => ConsentDefinition()), 'ConsentDefinitionGetReq': TypeInfo(TypeOf.Class, create:() => ConsentDefinitionGetReq()), });