/* Options: Date: 2026-01-22 01:55:15 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: PublishAnimals.* //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 PublishAnimalsResponse extends BaseResponse implements IConvertible { String? id; PublishAnimalsResponse({this.id}); PublishAnimalsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); getTypeName() => "PublishAnimalsResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/marketplace/animals", "POST") class PublishAnimals implements IReturn, IPost, IConvertible { String? name; String? phoneNumber; int? regionId; int? cityId; int? categoryId; int? purposeId; String? description; int? quantity; int? priceTypeId; double? price; PublishAnimals({this.name,this.phoneNumber,this.regionId,this.cityId,this.categoryId,this.purposeId,this.description,this.quantity,this.priceTypeId,this.price}); PublishAnimals.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; phoneNumber = json['phoneNumber']; regionId = json['regionId']; cityId = json['cityId']; categoryId = json['categoryId']; purposeId = json['purposeId']; description = json['description']; quantity = json['quantity']; priceTypeId = json['priceTypeId']; price = JsonConverters.toDouble(json['price']); return this; } Map toJson() => { 'name': name, 'phoneNumber': phoneNumber, 'regionId': regionId, 'cityId': cityId, 'categoryId': categoryId, 'purposeId': purposeId, 'description': description, 'quantity': quantity, 'priceTypeId': priceTypeId, 'price': price }; createResponse() => PublishAnimalsResponse(); getResponseTypeName() => "PublishAnimalsResponse"; getTypeName() => "PublishAnimals"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'PublishAnimalsResponse': TypeInfo(TypeOf.Class, create:() => PublishAnimalsResponse()), 'PublishAnimals': TypeInfo(TypeOf.Class, create:() => PublishAnimals()), });