/* Options: Date: 2025-07-18 00:52: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: SectionContentGetReq.* //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; } // @Route("/content", "POST,PUT") class Content extends Entity implements IReturn, IConvertible { String? section; String? itemId; String? itemCode; String? country; String? lang; String? app; String? companyId; String? company; Map? elements; Content({this.section,this.itemId,this.itemCode,this.country,this.lang,this.app,this.companyId,this.company,this.elements}); Content.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); section = json['section']; itemId = json['itemId']; itemCode = json['itemCode']; country = json['country']; lang = json['lang']; app = json['app']; companyId = json['companyId']; company = json['company']; elements = JsonConverters.toStringMap(json['elements']); return this; } Map toJson() => super.toJson()..addAll({ 'section': section, 'itemId': itemId, 'itemCode': itemCode, 'country': country, 'lang': lang, 'app': app, 'companyId': companyId, 'company': company, 'elements': elements }); createResponse() => Content(); getResponseTypeName() => "Content"; getTypeName() => "Content"; TypeContext? context = _ctx; } // @Route("/content/{Country}/{Lang}/{Section}") // @Route("/content/{Country}/{Lang}/{Section}/{SubSection}") class SectionContentGetReq implements IReturn, IConvertible { String? country; String? lang; String? section; String? subSection; String? environment; SectionContentGetReq({this.country,this.lang,this.section,this.subSection,this.environment}); SectionContentGetReq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { country = json['country']; lang = json['lang']; section = json['section']; subSection = json['subSection']; environment = json['environment']; return this; } Map toJson() => { 'country': country, 'lang': lang, 'section': section, 'subSection': subSection, 'environment': environment }; createResponse() => Content(); getResponseTypeName() => "Content"; getTypeName() => "SectionContentGetReq"; 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()), 'Content': TypeInfo(TypeOf.Class, create:() => Content()), 'SectionContentGetReq': TypeInfo(TypeOf.Class, create:() => SectionContentGetReq()), });