/* Options: Date: 2024-05-11 09:40:35 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: ThrowValidation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class ThrowValidationResponse implements IConvertible { int? age; String? Required; String? email; ResponseStatus? responseStatus; ThrowValidationResponse({this.age,this.Required,this.email,this.responseStatus}); ThrowValidationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { age = json['age']; 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; String? Required; String? email; ThrowValidation({this.age,this.Required,this.email}); ThrowValidation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { age = json['age']; 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()), });