/* Options: Date: 2026-09-02 15:38:29 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AllCollectionTypes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Poco implements IConvertible { String name = ""; Poco({this.name=""}); Poco.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name'] ?? ""; return this; } Map toJson() => { 'name': name }; getTypeName() => "Poco"; TypeContext? context = _ctx; } class AllCollectionTypes implements IReturn, IConvertible, IPost { List intArray = []; List intList = []; List stringArray = []; List stringList = []; List floatArray = []; List doubleList = []; Uint8List? byteArray; List charArray = []; List decimalList = []; List pocoArray = []; List pocoList = []; Map?> pocoLookup = {}; Map>?> pocoLookupMap = {}; AllCollectionTypes({this.intArray=const [],this.intList=const [],this.stringArray=const [],this.stringList=const [],this.floatArray=const [],this.doubleList=const [],this.byteArray,this.charArray=const [],this.decimalList=const [],this.pocoArray=const [],this.pocoList=const [],this.pocoLookup=const {},this.pocoLookupMap=const {}}); AllCollectionTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { intArray = JsonConverters.fromJson(json['intArray'],'List',context!) ?? []; intList = JsonConverters.fromJson(json['intList'],'List',context!) ?? []; stringArray = JsonConverters.fromJson(json['stringArray'],'List',context!) ?? []; stringList = JsonConverters.fromJson(json['stringList'],'List',context!) ?? []; floatArray = JsonConverters.fromJson(json['floatArray'],'List',context!) ?? []; doubleList = JsonConverters.fromJson(json['doubleList'],'List',context!) ?? []; byteArray = JsonConverters.fromJson(json['byteArray'],'Uint8List',context!) ?? Uint8List(0); charArray = JsonConverters.fromJson(json['charArray'],'List',context!) ?? []; decimalList = JsonConverters.fromJson(json['decimalList'],'List',context!) ?? []; pocoArray = JsonConverters.fromJson(json['pocoArray'],'List',context!) ?? []; pocoList = JsonConverters.fromJson(json['pocoList'],'List',context!) ?? []; pocoLookup = JsonConverters.fromJson(json['pocoLookup'],'Map?>',context!) ?? {}; pocoLookupMap = JsonConverters.fromJson(json['pocoLookupMap'],'Map>?>',context!) ?? {}; return this; } Map toJson() => { 'intArray': JsonConverters.toJson(intArray,'List',context!), 'intList': JsonConverters.toJson(intList,'List',context!), 'stringArray': JsonConverters.toJson(stringArray,'List',context!), 'stringList': JsonConverters.toJson(stringList,'List',context!), 'floatArray': JsonConverters.toJson(floatArray,'List',context!), 'doubleList': JsonConverters.toJson(doubleList,'List',context!), 'byteArray': JsonConverters.toJson(byteArray,'Uint8List',context!), 'charArray': JsonConverters.toJson(charArray,'List',context!), 'decimalList': JsonConverters.toJson(decimalList,'List',context!), 'pocoArray': JsonConverters.toJson(pocoArray,'List',context!), 'pocoList': JsonConverters.toJson(pocoList,'List',context!), 'pocoLookup': JsonConverters.toJson(pocoLookup,'Map?>',context!), 'pocoLookupMap': JsonConverters.toJson(pocoLookupMap,'Map>?>',context!) }; createResponse() => AllCollectionTypes(); getResponseTypeName() => "AllCollectionTypes"; getTypeName() => "AllCollectionTypes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'Poco': TypeInfo(TypeOf.Class, create:() => Poco()), 'AllCollectionTypes': TypeInfo(TypeOf.Class, create:() => AllCollectionTypes()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Map?>': TypeInfo(TypeOf.Class, create:() => Map?>()), 'Map>?>': TypeInfo(TypeOf.Class, create:() => Map>?>()), 'List>': TypeInfo(TypeOf.Class, create:() => >[]), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), });