/* Options: Date: 2026-01-22 01:45:00 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: GetUserTypes.* //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 UserType implements IConvertible { int? id; // @required() // @StringLength(10) String? code; // @required() // @StringLength(100) String? name; UserType({this.id,this.code,this.name}); UserType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; code = json['code']; name = json['name']; return this; } Map toJson() => { 'id': id, 'code': code, 'name': name }; getTypeName() => "UserType"; TypeContext? context = _ctx; } class GetUserTypesResponse extends BaseResponse implements IConvertible { List? userTypes; GetUserTypesResponse({this.userTypes}); GetUserTypesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); userTypes = JsonConverters.fromJson(json['userTypes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'userTypes': JsonConverters.toJson(userTypes,'List',context!) }); getTypeName() => "GetUserTypesResponse"; TypeContext? context = _ctx; } // @Route("/api/v1/utils/user-types", "GET") class GetUserTypes implements IReturn, IGet, IConvertible { GetUserTypes(); GetUserTypes.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetUserTypesResponse(); getResponseTypeName() => "GetUserTypesResponse"; getTypeName() => "GetUserTypes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pecuario_backend.develsystems.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'UserType': TypeInfo(TypeOf.Class, create:() => UserType()), 'GetUserTypesResponse': TypeInfo(TypeOf.Class, create:() => GetUserTypesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUserTypes': TypeInfo(TypeOf.Class, create:() => GetUserTypes()), });