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