/* Options: Date: 2026-01-22 01:53:52 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: GetAnimalTypesByCategory.* //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 AnimalType implements IConvertible { int? id; // @required() // @StringLength(50) String? name; // @References(typeof(AnimalCategory)) int? animalCategoryId; AnimalType({this.id,this.name,this.animalCategoryId}); AnimalType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; animalCategoryId = json['animalCategoryId']; return this; } Map toJson() => { 'id': id, 'name': name, 'animalCategoryId': animalCategoryId }; getTypeName() => "AnimalType"; TypeContext? context = _ctx; } class GetAnimalTypesByCategoryResponse extends BaseResponse implements IConvertible { List? animalTypes; GetAnimalTypesByCategoryResponse({this.animalTypes}); GetAnimalTypesByCategoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); animalTypes = JsonConverters.fromJson(json['animalTypes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'animalTypes': JsonConverters.toJson(animalTypes,'List',context!) }); getTypeName() => "GetAnimalTypesByCategoryResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/utils/animal-types/{categoryId}", "GET") class GetAnimalTypesByCategory implements IReturn, IGet, IConvertible { int? categoryId; GetAnimalTypesByCategory({this.categoryId}); GetAnimalTypesByCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { categoryId = json['categoryId']; return this; } Map toJson() => { 'categoryId': categoryId }; createResponse() => GetAnimalTypesByCategoryResponse(); getResponseTypeName() => "GetAnimalTypesByCategoryResponse"; getTypeName() => "GetAnimalTypesByCategory"; 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()), 'AnimalType': TypeInfo(TypeOf.Class, create:() => AnimalType()), 'GetAnimalTypesByCategoryResponse': TypeInfo(TypeOf.Class, create:() => GetAnimalTypesByCategoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAnimalTypesByCategory': TypeInfo(TypeOf.Class, create:() => GetAnimalTypesByCategory()), });