/* Options: Date: 2026-04-04 01:20:52 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: SavePermissionValue.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @ApiResponse(Description="Returns a response status indicating success or not.") class SavePermissionValueResponse implements IConvertible { ResponseStatus? ResponseStatus; SavePermissionValueResponse({this.ResponseStatus}); SavePermissionValueResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SavePermissionValueResponse"; TypeContext? context = _ctx; } /** * Save change to a Permission value. */ // @Route("/permissions/{PermissionId}/licensee/") // @Route("/permissions/{PermissionId}/role/") // @Route("/permissions/{PermissionId}/contact/") // @Api(Description="Save change to a Permission value.") class SavePermissionValue implements IReturn, IConvertible, IPost { /** * A permission Id that we're saving the permission for. */ // @ApiMember(DataType="Guid", Description="A permission Id that we're saving the permission for.", IsRequired=true, Name="PermissionId") String? PermissionId; /** * The object to save a permission for. This will either be a contact or role list item. Leave this blank if we're saving for the licensee. */ // @ApiMember(DataType="Guid", Description="The object to save a permission for. This will either be a contact or role list item. Leave this blank if we're saving for the licensee.", Name="ObjectId") String? ObjectId; /** * Value to set the permission to, may be true, false or null. */ // @ApiMember(DataType="bool?", Description="Value to set the permission to, may be true, false or null.", Name="PermissionValue") bool? PermissionValue; SavePermissionValue({this.PermissionId,this.ObjectId,this.PermissionValue}); SavePermissionValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PermissionId = json['PermissionId']; ObjectId = json['ObjectId']; PermissionValue = json['PermissionValue']; return this; } Map toJson() => { 'PermissionId': PermissionId, 'ObjectId': ObjectId, 'PermissionValue': PermissionValue }; createResponse() => SavePermissionValueResponse(); getResponseTypeName() => "SavePermissionValueResponse"; getTypeName() => "SavePermissionValue"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'SavePermissionValueResponse': TypeInfo(TypeOf.Class, create:() => SavePermissionValueResponse()), 'SavePermissionValue': TypeInfo(TypeOf.Class, create:() => SavePermissionValue()), });