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