/* Options: Date: 2025-07-18 02:14:37 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: UserConsentPostReq.* //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 Consent extends Entity implements IConvertible { String? consentDefinitionId; Map? consents; DateTime? consentedDate; String? lang; bool? consented; bool? expired; Consent({this.consentDefinitionId,this.consents,this.consentedDate,this.lang,this.consented,this.expired}); Consent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); consentDefinitionId = json['consentDefinitionId']; consents = JsonConverters.fromJson(json['consents'],'Map',context!); consentedDate = JsonConverters.fromJson(json['consentedDate'],'DateTime',context!); lang = json['lang']; consented = json['consented']; expired = json['expired']; return this; } Map toJson() => super.toJson()..addAll({ 'consentDefinitionId': consentDefinitionId, 'consents': JsonConverters.toJson(consents,'Map',context!), 'consentedDate': JsonConverters.toJson(consentedDate,'DateTime',context!), 'lang': lang, 'consented': consented, 'expired': expired }); getTypeName() => "Consent"; TypeContext? context = _ctx; } // @Route("/userconsent", "POST") class UserConsentPostReq implements IReturn, IConvertible { String? userId; Consent? consent; UserConsentPostReq({this.userId,this.consent}); UserConsentPostReq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId']; consent = JsonConverters.fromJson(json['consent'],'Consent',context!); return this; } Map toJson() => { 'userId': userId, 'consent': JsonConverters.toJson(consent,'Consent',context!) }; createResponse() => Consent(); getResponseTypeName() => "Consent"; getTypeName() => "UserConsentPostReq"; 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()), 'Consent': TypeInfo(TypeOf.Class, create:() => Consent()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'UserConsentPostReq': TypeInfo(TypeOf.Class, create:() => UserConsentPostReq()), });