/* Options: Date: 2026-01-22 01:47:23 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: UpdateProfile.* //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 UpdateProfileResponse extends BaseResponse implements IConvertible { UpdateProfileResponse(); UpdateProfileResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "UpdateProfileResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/profile", "POST") class UpdateProfile implements IReturn, IPost, IConvertible { String? firstName; String? lastName; String? country; String? userType; UpdateProfile({this.firstName,this.lastName,this.country,this.userType}); UpdateProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; country = json['country']; userType = json['userType']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'country': country, 'userType': userType }; createResponse() => UpdateProfileResponse(); getResponseTypeName() => "UpdateProfileResponse"; getTypeName() => "UpdateProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'UpdateProfileResponse': TypeInfo(TypeOf.Class, create:() => UpdateProfileResponse()), 'UpdateProfile': TypeInfo(TypeOf.Class, create:() => UpdateProfile()), });