/* Options: Date: 2024-05-14 08:53:19 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: ThrowBusinessError.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class ThrowBusinessErrorResponse implements IConvertible { ResponseStatus? responseStatus; ThrowBusinessErrorResponse({this.responseStatus}); ThrowBusinessErrorResponse.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() => "ThrowBusinessErrorResponse"; TypeContext? context = _ctx; } // @Route("/throwbusinesserror") class ThrowBusinessError implements IReturn, IConvertible, IPost { ThrowBusinessError(); ThrowBusinessError.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => ThrowBusinessErrorResponse(); getResponseTypeName() => "ThrowBusinessErrorResponse"; getTypeName() => "ThrowBusinessError"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'ThrowBusinessErrorResponse': TypeInfo(TypeOf.Class, create:() => ThrowBusinessErrorResponse()), 'ThrowBusinessError': TypeInfo(TypeOf.Class, create:() => ThrowBusinessError()), });