/* Options: Date: 2026-01-22 01:52:03 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: GetCountries.* //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 Country implements IConvertible { int? id; // @required() // @StringLength(2) String? code; // @required() // @StringLength(3) String? phoneCode; // @required() // @StringLength(200) String? name; // @required() // @StringLength(5) String? currencySymbol; // @required() // @StringLength(200) String? currencyName; // @required() int? order; Country({this.id,this.code,this.phoneCode,this.name,this.currencySymbol,this.currencyName,this.order}); Country.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; code = json['code']; phoneCode = json['phoneCode']; name = json['name']; currencySymbol = json['currencySymbol']; currencyName = json['currencyName']; order = json['order']; return this; } Map toJson() => { 'id': id, 'code': code, 'phoneCode': phoneCode, 'name': name, 'currencySymbol': currencySymbol, 'currencyName': currencyName, 'order': order }; getTypeName() => "Country"; TypeContext? context = _ctx; } class GetCountriesResponse extends BaseResponse implements IConvertible { List? countries; GetCountriesResponse({this.countries}); GetCountriesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); countries = JsonConverters.fromJson(json['countries'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'countries': JsonConverters.toJson(countries,'List',context!) }); getTypeName() => "GetCountriesResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/utils/countries", "GET") class GetCountries implements IReturn, IGet, IConvertible { GetCountries(); GetCountries.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetCountriesResponse(); getResponseTypeName() => "GetCountriesResponse"; getTypeName() => "GetCountries"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'Country': TypeInfo(TypeOf.Class, create:() => Country()), 'GetCountriesResponse': TypeInfo(TypeOf.Class, create:() => GetCountriesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCountries': TypeInfo(TypeOf.Class, create:() => GetCountries()), });