/* Options: Date: 2024-05-10 05:39:39 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: HelloWithType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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()), });