/* Options: Date: 2026-04-04 01:19:09 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: SaveDimensionValue.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DimensionValueModel implements IConvertible { /** * Id of the dimension value. */ // @ApiMember(DataType="Guid", Description="Id of the dimension value.", Name="DimensionValueId", ParameterType="body") String? DimensionValueId; /** * Dimension Id this value is for. */ // @ApiMember(Description="Dimension Id this value is for.", ParameterType="body") String? DimensionId; /** * Name of the dimension value. */ // @ApiMember(Description="Name of the dimension value.", ParameterType="body") String? Name; /** * Description of the dimension value. */ // @ApiMember(Description="Description of the dimension value.", ParameterType="body") String? Description; /** * Short Name for the dimension value. */ // @ApiMember(Description="Short Name for the dimension value.", ParameterType="body") String? ShortName; /** * Id of the colour associated. */ // @ApiMember(Description="Id of the colour associated.", ParameterType="body") String? TrafficLightId; /** * Colour associated with the dimension value. */ // @ApiMember(Description="Colour associated with the dimension value.", ParameterType="body") String? TrafficLightColour; /** * Id that links this dimension value to an object. */ // @ApiMember(Description="Id that links this dimension value to an object.", ParameterType="body") String? ObjectConnectionId; /** * Owner Id of the dimension value. */ // @ApiMember(Description="Owner Id of the dimension value.", ParameterType="body") String? OwnerContactId; /** * Record status of the dimension value. */ // @ApiMember(Description="Record status of the dimension value.", ParameterType="body") String? RecordStatus; DimensionValueModel({this.DimensionValueId,this.DimensionId,this.Name,this.Description,this.ShortName,this.TrafficLightId,this.TrafficLightColour,this.ObjectConnectionId,this.OwnerContactId,this.RecordStatus}); DimensionValueModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DimensionValueId = json['DimensionValueId']; DimensionId = json['DimensionId']; Name = json['Name']; Description = json['Description']; ShortName = json['ShortName']; TrafficLightId = json['TrafficLightId']; TrafficLightColour = json['TrafficLightColour']; ObjectConnectionId = json['ObjectConnectionId']; OwnerContactId = json['OwnerContactId']; RecordStatus = json['RecordStatus']; return this; } Map toJson() => { 'DimensionValueId': DimensionValueId, 'DimensionId': DimensionId, 'Name': Name, 'Description': Description, 'ShortName': ShortName, 'TrafficLightId': TrafficLightId, 'TrafficLightColour': TrafficLightColour, 'ObjectConnectionId': ObjectConnectionId, 'OwnerContactId': OwnerContactId, 'RecordStatus': RecordStatus }; getTypeName() => "DimensionValueModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="Success of the create/update of the dimension value") class SaveDimensionValueResponse implements IConvertible { /** * Id of the Dimension Value created. */ // @ApiMember(DataType="Guid", Description="Id of the Dimension Value created.", Name="DimensionValueId", ParameterType="query") String? DimensionValueId; ResponseStatus? ResponseStatus; SaveDimensionValueResponse({this.DimensionValueId,this.ResponseStatus}); SaveDimensionValueResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DimensionValueId = json['DimensionValueId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'DimensionValueId': DimensionValueId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SaveDimensionValueResponse"; TypeContext? context = _ctx; } /** * Add or update a dimension values details. */ // @Route("/dimensionvalues", "POST") // @Route("/dimensionvalues/{DimensionValueId}", "PUT") // @Api(Description="Add or update a dimension values details.") class SaveDimensionValue implements IReturn, IConvertible, IPost { /** * Details of the dimension value to be added or updated. */ // @ApiMember(DataType="DimensionValueModel", Description="Details of the dimension value to be added or updated.", IsRequired=true, Name="DimensionValue") DimensionValueModel? DimensionValue; /** * Id of the dimension value. */ // @ApiMember(DataType="Guid", Description="Id of the dimension value.", IsRequired=true, Name="DimensionValueId") String? DimensionValueId; SaveDimensionValue({this.DimensionValue,this.DimensionValueId}); SaveDimensionValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DimensionValue = JsonConverters.fromJson(json['DimensionValue'],'DimensionValueModel',context!); DimensionValueId = json['DimensionValueId']; return this; } Map toJson() => { 'DimensionValue': JsonConverters.toJson(DimensionValue,'DimensionValueModel',context!), 'DimensionValueId': DimensionValueId }; createResponse() => SaveDimensionValueResponse(); getResponseTypeName() => "SaveDimensionValueResponse"; getTypeName() => "SaveDimensionValue"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'DimensionValueModel': TypeInfo(TypeOf.Class, create:() => DimensionValueModel()), 'SaveDimensionValueResponse': TypeInfo(TypeOf.Class, create:() => SaveDimensionValueResponse()), 'SaveDimensionValue': TypeInfo(TypeOf.Class, create:() => SaveDimensionValue()), });