/* Options: Date: 2026-01-22 01:54:43 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: GetAnimalDetails.* //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 DetailRow implements IConvertible { int? order; String? textType; String? text; DetailRow({this.order,this.textType,this.text}); DetailRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { order = json['order']; textType = json['textType']; text = json['text']; return this; } Map toJson() => { 'order': order, 'textType': textType, 'text': text }; getTypeName() => "DetailRow"; TypeContext? context = _ctx; } class AnimalDetails implements IConvertible { String? id; String? date; List? images; List? detailRows; bool? contactEnabled; String? contactLink; String? priceType; String? price; AnimalDetails({this.id,this.date,this.images,this.detailRows,this.contactEnabled,this.contactLink,this.priceType,this.price}); AnimalDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; date = json['date']; images = JsonConverters.fromJson(json['images'],'List',context!); detailRows = JsonConverters.fromJson(json['detailRows'],'List',context!); contactEnabled = json['contactEnabled']; contactLink = json['contactLink']; priceType = json['priceType']; price = json['price']; return this; } Map toJson() => { 'id': id, 'date': date, 'images': JsonConverters.toJson(images,'List',context!), 'detailRows': JsonConverters.toJson(detailRows,'List',context!), 'contactEnabled': contactEnabled, 'contactLink': contactLink, 'priceType': priceType, 'price': price }; getTypeName() => "AnimalDetails"; TypeContext? context = _ctx; } class GetAnimalDetailsResponse extends BaseResponse implements IConvertible { AnimalDetails? details; GetAnimalDetailsResponse({this.details}); GetAnimalDetailsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); details = JsonConverters.fromJson(json['details'],'AnimalDetails',context!); return this; } Map toJson() => super.toJson()..addAll({ 'details': JsonConverters.toJson(details,'AnimalDetails',context!) }); getTypeName() => "GetAnimalDetailsResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/animals/{AnimalId}", "GET") class GetAnimalDetails implements IReturn, IGet, IConvertible { String? animalId; GetAnimalDetails({this.animalId}); GetAnimalDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { animalId = json['animalId']; return this; } Map toJson() => { 'animalId': animalId }; createResponse() => GetAnimalDetailsResponse(); getResponseTypeName() => "GetAnimalDetailsResponse"; getTypeName() => "GetAnimalDetails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'DetailRow': TypeInfo(TypeOf.Class, create:() => DetailRow()), 'AnimalDetails': TypeInfo(TypeOf.Class, create:() => AnimalDetails()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAnimalDetailsResponse': TypeInfo(TypeOf.Class, create:() => GetAnimalDetailsResponse()), 'GetAnimalDetails': TypeInfo(TypeOf.Class, create:() => GetAnimalDetails()), });