/* Options: Date: 2026-01-22 01:54:44 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: GetMarketplaceAnimals.* //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 DashboardAnimal implements IConvertible { String? id; String? description; String? image; String? type; String? price; String? cityRegionName; String? priceType; DashboardAnimal({this.id,this.description,this.image,this.type,this.price,this.cityRegionName,this.priceType}); DashboardAnimal.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() => "DashboardAnimal"; TypeContext? context = _ctx; } class GetMarketplaceAnimalsResponse extends BaseResponse implements IConvertible { List? animals; String? offset; GetMarketplaceAnimalsResponse({this.animals,this.offset}); GetMarketplaceAnimalsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); animals = JsonConverters.fromJson(json['animals'],'List',context!); offset = json['offset']; return this; } Map toJson() => super.toJson()..addAll({ 'animals': JsonConverters.toJson(animals,'List',context!), 'offset': offset }); getTypeName() => "GetMarketplaceAnimalsResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/marketplace/animals", "GET") class GetMarketplaceAnimals implements IReturn, IGet, IConvertible { int? countryId; int? categoryId; int? regionId; int? typeId; int? pageSize; String? offset; GetMarketplaceAnimals({this.countryId,this.categoryId,this.regionId,this.typeId,this.pageSize,this.offset}); GetMarketplaceAnimals.fromJson(Map json) { fromMap(json); } fromMap(Map json) { countryId = json['countryId']; categoryId = json['categoryId']; regionId = json['regionId']; typeId = json['typeId']; pageSize = json['pageSize']; offset = json['offset']; return this; } Map toJson() => { 'countryId': countryId, 'categoryId': categoryId, 'regionId': regionId, 'typeId': typeId, 'pageSize': pageSize, 'offset': offset }; createResponse() => GetMarketplaceAnimalsResponse(); getResponseTypeName() => "GetMarketplaceAnimalsResponse"; getTypeName() => "GetMarketplaceAnimals"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'DashboardAnimal': TypeInfo(TypeOf.Class, create:() => DashboardAnimal()), 'GetMarketplaceAnimalsResponse': TypeInfo(TypeOf.Class, create:() => GetMarketplaceAnimalsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetMarketplaceAnimals': TypeInfo(TypeOf.Class, create:() => GetMarketplaceAnimals()), });