/* Options: Date: 2026-09-02 15:37:43 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: CustomHttpError.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CustomHttpErrorResponse implements IConvertible { String custom = ""; ResponseStatus? responseStatus; CustomHttpErrorResponse({this.custom="",this.responseStatus}); CustomHttpErrorResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { custom = json['custom'] ?? ""; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'custom': custom, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CustomHttpErrorResponse"; TypeContext? context = _ctx; } class CustomHttpError implements IReturn, IConvertible, IPost { int statusCode = 0; String statusDescription = ""; CustomHttpError({this.statusCode=0,this.statusDescription=""}); CustomHttpError.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode'] ?? 0; statusDescription = json['statusDescription'] ?? ""; return this; } Map toJson() => { 'statusCode': statusCode, 'statusDescription': statusDescription }; createResponse() => CustomHttpErrorResponse(); getResponseTypeName() => "CustomHttpErrorResponse"; getTypeName() => "CustomHttpError"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'CustomHttpErrorResponse': TypeInfo(TypeOf.Class, create:() => CustomHttpErrorResponse()), 'CustomHttpError': TypeInfo(TypeOf.Class, create:() => CustomHttpError()), });