/* Options: Date: 2024-05-09 21:47:28 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestDataAllCollectionTypes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ 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,this.intList,this.stringArray,this.stringList,this.floatArray,this.doubleList,this.byteArray,this.charArray,this.decimalList,this.pocoArray,this.pocoList,this.pocoLookup,this.pocoLookupMap}); 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!); 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; } // @Route("/testdata/AllCollectionTypes") class TestDataAllCollectionTypes implements IReturn, IConvertible, IPost { TestDataAllCollectionTypes(); TestDataAllCollectionTypes.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AllCollectionTypes(); getResponseTypeName() => "AllCollectionTypes"; getTypeName() => "TestDataAllCollectionTypes"; 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()), 'TestDataAllCollectionTypes': TypeInfo(TypeOf.Class, create:() => TestDataAllCollectionTypes()), });