/* Options: Date: 2024-05-12 09:21:55 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: MetadataTest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class MetadataTestNestedChild implements IConvertible { String? name; MetadataTestNestedChild({this.name}); MetadataTestNestedChild.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; getTypeName() => "MetadataTestNestedChild"; TypeContext? context = _ctx; } class MetadataTestChild implements IConvertible { String? name; List? results; MetadataTestChild({this.name,this.results}); MetadataTestChild.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; results = JsonConverters.fromJson(json['results'],'List',context!); return this; } Map toJson() => { 'name': name, 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "MetadataTestChild"; TypeContext? context = _ctx; } class MetadataTestResponse implements IConvertible { int? id; List? results; MetadataTestResponse({this.id,this.results}); MetadataTestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; results = JsonConverters.fromJson(json['results'],'List',context!); return this; } Map toJson() => { 'id': id, 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "MetadataTestResponse"; TypeContext? context = _ctx; } // @Route("/metadatatest") class MetadataTest implements IReturn, IConvertible, IPost { int? id; MetadataTest({this.id}); MetadataTest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => MetadataTestResponse(); getResponseTypeName() => "MetadataTestResponse"; getTypeName() => "MetadataTest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'MetadataTestNestedChild': TypeInfo(TypeOf.Class, create:() => MetadataTestNestedChild()), 'MetadataTestChild': TypeInfo(TypeOf.Class, create:() => MetadataTestChild()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'MetadataTestResponse': TypeInfo(TypeOf.Class, create:() => MetadataTestResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'MetadataTest': TypeInfo(TypeOf.Class, create:() => MetadataTest()), });