/* Options: Date: 2026-04-04 06:45:39 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUOMCodeList.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UOMModel implements IConvertible { String? Code; String? Name; String? Description; String? Symbol; UOMModel({this.Code,this.Name,this.Description,this.Symbol}); UOMModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Description = json['Description']; Symbol = json['Symbol']; return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Description': Description, 'Symbol': Symbol }; getTypeName() => "UOMModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="List of UOM codes (Unit of Measure)") class GetUOMCodeListResponse implements IConvertible { List? UOMCodes; ResponseStatus? ResponseStatus; GetUOMCodeListResponse({this.UOMCodes,this.ResponseStatus}); GetUOMCodeListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UOMCodes = JsonConverters.fromJson(json['UOMCodes'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'UOMCodes': JsonConverters.toJson(UOMCodes,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUOMCodeListResponse"; TypeContext? context = _ctx; } /** * Get a list of UOM codes (Unit of Measure) */ // @Route("/unitofmeasures/") // @Route("/unitofmeasures/{ApplianceId}") // @Api(Description="Get a list of UOM codes (Unit of Measure)") class GetUOMCodeList implements IReturn, IConvertible, IGet { /** * ApplianceId to narrow the UOM Code list down to relevant ones for the appliance. */ // @ApiMember(DataType="Guid", Description="ApplianceId to narrow the UOM Code list down to relevant ones for the appliance.", Name="ApplianceId", ParameterType="query") String? ApplianceId; GetUOMCodeList({this.ApplianceId}); GetUOMCodeList.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApplianceId = json['ApplianceId']; return this; } Map toJson() => { 'ApplianceId': ApplianceId }; createResponse() => GetUOMCodeListResponse(); getResponseTypeName() => "GetUOMCodeListResponse"; getTypeName() => "GetUOMCodeList"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'UOMModel': TypeInfo(TypeOf.Class, create:() => UOMModel()), 'GetUOMCodeListResponse': TypeInfo(TypeOf.Class, create:() => GetUOMCodeListResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUOMCodeList': TypeInfo(TypeOf.Class, create:() => GetUOMCodeList()), });