/* Options: Date: 2026-09-02 15:38:55 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: HelloWithType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class HelloType implements IConvertible { String result = ""; HelloType({this.result=""}); HelloType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = json['result'] ?? ""; return this; } Map toJson() => { 'result': result }; getTypeName() => "HelloType"; TypeContext? context = _ctx; } class HelloWithTypeResponse implements IConvertible { HelloType? result; HelloWithTypeResponse({this.result}); HelloWithTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'HelloType',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'HelloType',context!) }; getTypeName() => "HelloWithTypeResponse"; TypeContext? context = _ctx; } class HelloWithType implements IReturn, IConvertible, IPost { String name = ""; HelloWithType({this.name=""}); HelloWithType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name'] ?? ""; return this; } Map toJson() => { 'name': name }; createResponse() => HelloWithTypeResponse(); getResponseTypeName() => "HelloWithTypeResponse"; getTypeName() => "HelloWithType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'HelloType': TypeInfo(TypeOf.Class, create:() => HelloType()), 'HelloWithTypeResponse': TypeInfo(TypeOf.Class, create:() => HelloWithTypeResponse()), 'HelloWithType': TypeInfo(TypeOf.Class, create:() => HelloWithType()), });