/* Options: Date: 2026-04-04 01:20:15 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: GetPermissionMatrix.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PermissionLevelModel implements IConvertible { String? PermissionValueId; String? ObjectId; String? ObjectName; String? ObjectGroup; int? ContactsAffected; bool? PermissionValue; PermissionLevelModel({this.PermissionValueId,this.ObjectId,this.ObjectName,this.ObjectGroup,this.ContactsAffected,this.PermissionValue}); PermissionLevelModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PermissionValueId = json['PermissionValueId']; ObjectId = json['ObjectId']; ObjectName = json['ObjectName']; ObjectGroup = json['ObjectGroup']; ContactsAffected = json['ContactsAffected']; PermissionValue = json['PermissionValue']; return this; } Map toJson() => { 'PermissionValueId': PermissionValueId, 'ObjectId': ObjectId, 'ObjectName': ObjectName, 'ObjectGroup': ObjectGroup, 'ContactsAffected': ContactsAffected, 'PermissionValue': PermissionValue }; getTypeName() => "PermissionLevelModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="Returns the Permission Value for an object and the permission levels that make up the determination of the permission.") class GetPermissionMatrixResponse implements IConvertible { bool? PermissionLevelValue; List? PermissionsMatrix; ResponseStatus? ResponseStatus; GetPermissionMatrixResponse({this.PermissionLevelValue,this.PermissionsMatrix,this.ResponseStatus}); GetPermissionMatrixResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PermissionLevelValue = json['PermissionLevelValue']; PermissionsMatrix = JsonConverters.fromJson(json['PermissionsMatrix'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'PermissionLevelValue': PermissionLevelValue, 'PermissionsMatrix': JsonConverters.toJson(PermissionsMatrix,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetPermissionMatrixResponse"; TypeContext? context = _ctx; } /** * Get a value for the current permission and object. Including the relevant data that affects the permission value outcome. */ // @Route("/permissions/{PermissionId}/matrix/") // @Api(Description="Get a value for the current permission and object. Including the relevant data that affects the permission value outcome.") class GetPermissionMatrix implements IReturn, IConvertible, IGet { /** * Permission Id to retrieve matrix for. */ // @ApiMember(DataType="Guid", Description="Permission Id to retrieve matrix for.", IsRequired=true, Name="PermissionId") String? PermissionId; /** * Object Id to retrieve permissions for. This will be either a contact, role list item or licensee contact. */ // @ApiMember(DataType="Guid", Description="Object Id to retrieve permissions for. This will be either a contact, role list item or licensee contact.", IsRequired=true, Name="ObjectId") String? ObjectId; GetPermissionMatrix({this.PermissionId,this.ObjectId}); GetPermissionMatrix.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PermissionId = json['PermissionId']; ObjectId = json['ObjectId']; return this; } Map toJson() => { 'PermissionId': PermissionId, 'ObjectId': ObjectId }; createResponse() => GetPermissionMatrixResponse(); getResponseTypeName() => "GetPermissionMatrixResponse"; getTypeName() => "GetPermissionMatrix"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'PermissionLevelModel': TypeInfo(TypeOf.Class, create:() => PermissionLevelModel()), 'GetPermissionMatrixResponse': TypeInfo(TypeOf.Class, create:() => GetPermissionMatrixResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetPermissionMatrix': TypeInfo(TypeOf.Class, create:() => GetPermissionMatrix()), });