/* 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: GetAnimalCategories.* //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 GetAnimalCategoriesResponse extends BaseResponse implements IConvertible { List? animalCategories; GetAnimalCategoriesResponse({this.animalCategories}); GetAnimalCategoriesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); animalCategories = JsonConverters.fromJson(json['animalCategories'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'animalCategories': JsonConverters.toJson(animalCategories,'List',context!) }); getTypeName() => "GetAnimalCategoriesResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/utils/animal-categories", "GET") class GetAnimalCategories implements IReturn, IGet, IConvertible { GetAnimalCategories(); GetAnimalCategories.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAnimalCategoriesResponse(); getResponseTypeName() => "GetAnimalCategoriesResponse"; getTypeName() => "GetAnimalCategories"; 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()), 'GetAnimalCategoriesResponse': TypeInfo(TypeOf.Class, create:() => GetAnimalCategoriesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAnimalCategories': TypeInfo(TypeOf.Class, create:() => GetAnimalCategories()), });