/* Options: Date: 2024-05-12 10:18:38 Version: 8.23 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,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; 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; String? statusDescription; CustomHttpError({this.statusCode,this.statusDescription}); CustomHttpError.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode']; 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()), });