/* Options: Date: 2026-01-22 01:52:21 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pecuario-backend.develsystems.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RequestCredit.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Status implements IConvertible { String? message; int? statusCode; Status({this.message,this.statusCode}); Status.fromJson(Map json) { fromMap(json); } fromMap(Map json) { message = json['message']; statusCode = json['statusCode']; return this; } Map toJson() => { 'message': message, 'statusCode': statusCode }; getTypeName() => "Status"; TypeContext? context = _ctx; } class BaseResponse implements IConvertible { Status? status; BaseResponse({this.status}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = JsonConverters.fromJson(json['status'],'Status',context!); return this; } Map toJson() => { 'status': JsonConverters.toJson(status,'Status',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } class RequestCreditResponse extends BaseResponse implements IConvertible { String? id; RequestCreditResponse({this.id}); RequestCreditResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); getTypeName() => "RequestCreditResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/credit/request", "POST") class RequestCredit implements IReturn, IPost, IConvertible { String? nombre; String? dpi; String? fechaDeNacimiento; String? telefono; double? montoAFinanciar; int? regionId; int? cityId; RequestCredit({this.nombre,this.dpi,this.fechaDeNacimiento,this.telefono,this.montoAFinanciar,this.regionId,this.cityId}); RequestCredit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { nombre = json['nombre']; dpi = json['dpi']; fechaDeNacimiento = json['fechaDeNacimiento']; telefono = json['telefono']; montoAFinanciar = JsonConverters.toDouble(json['montoAFinanciar']); regionId = json['regionId']; cityId = json['cityId']; return this; } Map toJson() => { 'nombre': nombre, 'dpi': dpi, 'fechaDeNacimiento': fechaDeNacimiento, 'telefono': telefono, 'montoAFinanciar': montoAFinanciar, 'regionId': regionId, 'cityId': cityId }; createResponse() => RequestCreditResponse(); getResponseTypeName() => "RequestCreditResponse"; getTypeName() => "RequestCredit"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'RequestCreditResponse': TypeInfo(TypeOf.Class, create:() => RequestCreditResponse()), 'RequestCredit': TypeInfo(TypeOf.Class, create:() => RequestCredit()), });