/* Options: Date: 2025-07-18 00:20:39 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: UpdateConfigReq.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class Country implements IId, ITimestamp, IConvertible { int? id; String? name; String? isoCode; int? configurationId; String? cultureInfos; String? excelTemplateId; String? saClientId; bool? inactive; Uint8List? timestamp; Configuration? configuration; List? clients; List? plans; List? documents; List? importJobs; Country({this.id,this.name,this.isoCode,this.configurationId,this.cultureInfos,this.excelTemplateId,this.saClientId,this.inactive,this.timestamp,this.configuration,this.clients,this.plans,this.documents,this.importJobs}); Country.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; isoCode = json['isoCode']; configurationId = json['configurationId']; cultureInfos = json['cultureInfos']; excelTemplateId = json['excelTemplateId']; saClientId = json['saClientId']; inactive = json['inactive']; timestamp = JsonConverters.fromJson(json['timestamp'],'Uint8List',context!); configuration = JsonConverters.fromJson(json['configuration'],'Configuration',context!); clients = JsonConverters.fromJson(json['clients'],'List',context!); plans = JsonConverters.fromJson(json['plans'],'List',context!); documents = JsonConverters.fromJson(json['documents'],'List',context!); importJobs = JsonConverters.fromJson(json['importJobs'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'isoCode': isoCode, 'configurationId': configurationId, 'cultureInfos': cultureInfos, 'excelTemplateId': excelTemplateId, 'saClientId': saClientId, 'inactive': inactive, 'timestamp': JsonConverters.toJson(timestamp,'Uint8List',context!), 'configuration': JsonConverters.toJson(configuration,'Configuration',context!), 'clients': JsonConverters.toJson(clients,'List',context!), 'plans': JsonConverters.toJson(plans,'List',context!), 'documents': JsonConverters.toJson(documents,'List',context!), 'importJobs': JsonConverters.toJson(importJobs,'List',context!) }; getTypeName() => "Country"; 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; } // @Route("/faq", "POST,PUT,DELETE") class ListItem extends Entity implements IReturn, IConvertible { String? listId; String? country; String? relatedId; String? code; String? custom; ListItem({this.listId,this.country,this.relatedId,this.code,this.custom}); ListItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); listId = json['listId']; country = json['country']; relatedId = json['relatedId']; code = json['code']; custom = json['custom']; return this; } Map toJson() => super.toJson()..addAll({ 'listId': listId, 'country': country, 'relatedId': relatedId, 'code': code, 'custom': custom }); createResponse() => ListItem(); getResponseTypeName() => "ListItem"; getTypeName() => "ListItem"; TypeContext? context = _ctx; } class SiteSection implements IConvertible { String? route; bool? public; String? parent; int? roles; List? hideFrom; int? order; SiteSection({this.route,this.public,this.parent,this.roles,this.hideFrom,this.order}); SiteSection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { route = json['route']; public = json['public']; parent = json['parent']; roles = json['roles']; hideFrom = JsonConverters.fromJson(json['hideFrom'],'List',context!); order = json['order']; return this; } Map toJson() => { 'route': route, 'public': public, 'parent': parent, 'roles': roles, 'hideFrom': JsonConverters.toJson(hideFrom,'List',context!), 'order': order }; getTypeName() => "SiteSection"; TypeContext? context = _ctx; } class Configuration extends Entity implements IConvertible { String? category; Map? countries; List? listItems; Map? listRelationships; Map?>? sectionElements; Map? siteStructure; int? version; String? createdBy; DateTime? dateCreated; String? updatedBy; DateTime? dateUpdated; Configuration({this.category,this.countries,this.listItems,this.listRelationships,this.sectionElements,this.siteStructure,this.version,this.createdBy,this.dateCreated,this.updatedBy,this.dateUpdated}); Configuration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); category = json['category']; countries = JsonConverters.fromJson(json['countries'],'Map',context!); listItems = JsonConverters.fromJson(json['listItems'],'List',context!); listRelationships = JsonConverters.toStringMap(json['listRelationships']); sectionElements = JsonConverters.fromJson(json['sectionElements'],'Map?>',context!); siteStructure = JsonConverters.fromJson(json['siteStructure'],'Map',context!); version = json['version']; createdBy = json['createdBy']; dateCreated = JsonConverters.fromJson(json['dateCreated'],'DateTime',context!); updatedBy = json['updatedBy']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'category': category, 'countries': JsonConverters.toJson(countries,'Map',context!), 'listItems': JsonConverters.toJson(listItems,'List',context!), 'listRelationships': listRelationships, 'sectionElements': JsonConverters.toJson(sectionElements,'Map?>',context!), 'siteStructure': JsonConverters.toJson(siteStructure,'Map',context!), 'version': version, 'createdBy': createdBy, 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'updatedBy': updatedBy, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!) }); getTypeName() => "Configuration"; TypeContext? context = _ctx; } class Country implements IConvertible { String? name; Map? languages; Country({this.name,this.languages}); Country.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; languages = JsonConverters.toStringMap(json['languages']); return this; } Map toJson() => { 'name': name, 'languages': languages }; getTypeName() => "Country"; TypeContext? context = _ctx; } 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 Configuration implements IId, ITimestamp, IConvertible { int? id; String? guid; bool? system; Uint8List? timestamp; Country? country; Client? client; List? configurationVersions; Configuration({this.id,this.guid,this.system,this.timestamp,this.country,this.client,this.configurationVersions}); Configuration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; guid = json['guid']; system = json['system']; timestamp = JsonConverters.fromJson(json['timestamp'],'Uint8List',context!); country = JsonConverters.fromJson(json['country'],'Country',context!); client = JsonConverters.fromJson(json['client'],'Client',context!); configurationVersions = JsonConverters.fromJson(json['configurationVersions'],'List',context!); return this; } Map toJson() => { 'id': id, 'guid': guid, 'system': system, 'timestamp': JsonConverters.toJson(timestamp,'Uint8List',context!), 'country': JsonConverters.toJson(country,'Country',context!), 'client': JsonConverters.toJson(client,'Client',context!), 'configurationVersions': JsonConverters.toJson(configurationVersions,'List',context!) }; getTypeName() => "Configuration"; TypeContext? context = _ctx; } // @Route("/config/update", "POST") class UpdateConfigReq implements IReturn, IConvertible { String? category; Map? countries; List? listItems; Map? listRelationships; Map?>? sectionElements; Map? siteStructure; UpdateConfigReq({this.category,this.countries,this.listItems,this.listRelationships,this.sectionElements,this.siteStructure}); UpdateConfigReq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { category = json['category']; countries = JsonConverters.fromJson(json['countries'],'Map',context!); listItems = JsonConverters.fromJson(json['listItems'],'List',context!); listRelationships = JsonConverters.toStringMap(json['listRelationships']); sectionElements = JsonConverters.fromJson(json['sectionElements'],'Map?>',context!); siteStructure = JsonConverters.fromJson(json['siteStructure'],'Map',context!); return this; } Map toJson() => { 'category': category, 'countries': JsonConverters.toJson(countries,'Map',context!), 'listItems': JsonConverters.toJson(listItems,'List',context!), 'listRelationships': listRelationships, 'sectionElements': JsonConverters.toJson(sectionElements,'Map?>',context!), 'siteStructure': JsonConverters.toJson(siteStructure,'Map',context!) }; createResponse() => Configuration(); getResponseTypeName() => "Configuration"; getTypeName() => "UpdateConfigReq"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'Country': TypeInfo(TypeOf.Class, create:() => Country()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'Configuration': TypeInfo(TypeOf.Class, create:() => Configuration()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Client': TypeInfo(TypeOf.Class, create:() => Client()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Plan': TypeInfo(TypeOf.Class, create:() => Plan()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Document': TypeInfo(TypeOf.Class, create:() => Document()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ImportJob': TypeInfo(TypeOf.Class, create:() => ImportJob()), 'Entity': TypeInfo(TypeOf.Class, create:() => Entity()), 'ContactDetails': TypeInfo(TypeOf.Class, create:() => ContactDetails()), 'ListItem': TypeInfo(TypeOf.Class, create:() => ListItem()), 'SiteSection': TypeInfo(TypeOf.Class, create:() => SiteSection()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Map?>': TypeInfo(TypeOf.Class, create:() => Map?>()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ConfigurationVersion': TypeInfo(TypeOf.Class, create:() => ConfigurationVersion()), 'UpdateConfigReq': TypeInfo(TypeOf.Class, create:() => UpdateConfigReq()), });