/* Options: Date: 2026-01-22 01:53:22 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: GetCitiesByRegion.* //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 Region implements IConvertible { int? id; // @References(typeof(Country)) int? countryId; // @required() // @StringLength(200) String? name; Region({this.id,this.countryId,this.name}); Region.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; countryId = json['countryId']; name = json['name']; return this; } Map toJson() => { 'id': id, 'countryId': countryId, 'name': name }; getTypeName() => "Region"; TypeContext? context = _ctx; } class City implements IConvertible { int? id; // @References(typeof(Region)) int? regionId; // @required() // @StringLength(200) String? name; City({this.id,this.regionId,this.name}); City.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; regionId = json['regionId']; name = json['name']; return this; } Map toJson() => { 'id': id, 'regionId': regionId, 'name': name }; getTypeName() => "City"; TypeContext? context = _ctx; } class GetCitiesByRegionResponse extends BaseResponse implements IConvertible { List? cities; GetCitiesByRegionResponse({this.cities}); GetCitiesByRegionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); cities = JsonConverters.fromJson(json['cities'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'cities': JsonConverters.toJson(cities,'List',context!) }); getTypeName() => "GetCitiesByRegionResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/utils/cities/{RegionId}", "GET") class GetCitiesByRegion implements IReturn, IGet, IConvertible { int? regionId; GetCitiesByRegion({this.regionId}); GetCitiesByRegion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regionId = json['regionId']; return this; } Map toJson() => { 'regionId': regionId }; createResponse() => GetCitiesByRegionResponse(); getResponseTypeName() => "GetCitiesByRegionResponse"; getTypeName() => "GetCitiesByRegion"; 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()), 'Region': TypeInfo(TypeOf.Class, create:() => Region()), 'City': TypeInfo(TypeOf.Class, create:() => City()), 'GetCitiesByRegionResponse': TypeInfo(TypeOf.Class, create:() => GetCitiesByRegionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCitiesByRegion': TypeInfo(TypeOf.Class, create:() => GetCitiesByRegion()), });