/* Options: Date: 2026-01-22 01:53:53 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: GetDashboard.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AnimalCategory implements IConvertible { int? id; // @required() // @StringLength(50) String? name; String? alias; int? order; bool? enabled; AnimalCategory({this.id,this.name,this.alias,this.order,this.enabled}); AnimalCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; alias = json['alias']; order = json['order']; enabled = json['enabled']; return this; } Map toJson() => { 'id': id, 'name': name, 'alias': alias, 'order': order, 'enabled': enabled }; getTypeName() => "AnimalCategory"; TypeContext? context = _ctx; } 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 DashboardLand implements IConvertible { String? id; String? description; String? image; String? type; String? price; String? cityRegionName; String? priceType; DashboardLand({this.id,this.description,this.image,this.type,this.price,this.cityRegionName,this.priceType}); DashboardLand.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; description = json['description']; image = json['image']; type = json['type']; price = json['price']; cityRegionName = json['cityRegionName']; priceType = json['priceType']; return this; } Map toJson() => { 'id': id, 'description': description, 'image': image, 'type': type, 'price': price, 'cityRegionName': cityRegionName, 'priceType': priceType }; getTypeName() => "DashboardLand"; TypeContext? context = _ctx; } class GetDashboardResponse extends BaseResponse implements IConvertible { List? animalCategories; Map?>? animalsByCategory; List? lands; String? greeting; int? farmsCount; GetDashboardResponse({this.animalCategories,this.animalsByCategory,this.lands,this.greeting,this.farmsCount}); GetDashboardResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); animalCategories = JsonConverters.fromJson(json['animalCategories'],'List',context!); animalsByCategory = JsonConverters.fromJson(json['animalsByCategory'],'Map?>',context!); lands = JsonConverters.fromJson(json['lands'],'List',context!); greeting = json['greeting']; farmsCount = json['farmsCount']; return this; } Map toJson() => super.toJson()..addAll({ 'animalCategories': JsonConverters.toJson(animalCategories,'List',context!), 'animalsByCategory': JsonConverters.toJson(animalsByCategory,'Map?>',context!), 'lands': JsonConverters.toJson(lands,'List',context!), 'greeting': greeting, 'farmsCount': farmsCount }); getTypeName() => "GetDashboardResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/dashboard", "GET") class GetDashboard implements IReturn, IGet, IConvertible { int? countryId; int? maxAnimals; int? maxLands; GetDashboard({this.countryId,this.maxAnimals,this.maxLands}); GetDashboard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { countryId = json['countryId']; maxAnimals = json['maxAnimals']; maxLands = json['maxLands']; return this; } Map toJson() => { 'countryId': countryId, 'maxAnimals': maxAnimals, 'maxLands': maxLands }; createResponse() => GetDashboardResponse(); getResponseTypeName() => "GetDashboardResponse"; getTypeName() => "GetDashboard"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'AnimalCategory': TypeInfo(TypeOf.Class, create:() => AnimalCategory()), 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'DashboardLand': TypeInfo(TypeOf.Class, create:() => DashboardLand()), 'GetDashboardResponse': TypeInfo(TypeOf.Class, create:() => GetDashboardResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Map?>': TypeInfo(TypeOf.Class, create:() => Map?>()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DashboardAnimal': TypeInfo(TypeOf.Class, create:() => DashboardAnimal()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDashboard': TypeInfo(TypeOf.Class, create:() => GetDashboard()), });