/* Options: Date: 2026-09-02 15:39:42 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: ThrowType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ThrowTypeResponse implements IConvertible { ResponseStatus? responseStatus; ThrowTypeResponse({this.responseStatus}); ThrowTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "ThrowTypeResponse"; TypeContext? context = _ctx; } // @Route("/throw/{Type}") class ThrowType implements IReturn, IConvertible, IPost { String type = ""; String message = ""; ThrowType({this.type="",this.message=""}); ThrowType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type'] ?? ""; message = json['message'] ?? ""; return this; } Map toJson() => { 'type': type, 'message': message }; createResponse() => ThrowTypeResponse(); getResponseTypeName() => "ThrowTypeResponse"; getTypeName() => "ThrowType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'ThrowTypeResponse': TypeInfo(TypeOf.Class, create:() => ThrowTypeResponse()), 'ThrowType': TypeInfo(TypeOf.Class, create:() => ThrowType()), });