/* Options: Date: 2026-04-04 01:20:13 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: GetRolesForAutomationNotifications.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GroupedListItemModel implements IConvertible { String? ListItemId; String? Name; String? GroupId; String? GroupName; GroupedListItemModel({this.ListItemId,this.Name,this.GroupId,this.GroupName}); GroupedListItemModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ListItemId = json['ListItemId']; Name = json['Name']; GroupId = json['GroupId']; GroupName = json['GroupName']; return this; } Map toJson() => { 'ListItemId': ListItemId, 'Name': Name, 'GroupId': GroupId, 'GroupName': GroupName }; getTypeName() => "GroupedListItemModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="A list of roles that are eligible to be assigned to a notification.") class GetRolesForAutomationNotificationsResponse implements IConvertible { /** * List of all roles (grouped by suite) that can be assigned to a notification. */ // @ApiMember(Description="List of all roles (grouped by suite) that can be assigned to a notification.") List? AllRoles; /** * List of roles that are already assigned to an email notification for the object, these should be excluded from being selected again. */ // @ApiMember(Description="List of roles that are already assigned to an email notification for the object, these should be excluded from being selected again.") List? RolesUsedEmail; /** * List of roles that are already assigned to an sms notification for the object, these should be excluded from being selected again. */ // @ApiMember(Description="List of roles that are already assigned to an sms notification for the object, these should be excluded from being selected again.") List? RolesUsedSMS; ResponseStatus? ResponseStatus; GetRolesForAutomationNotificationsResponse({this.AllRoles,this.RolesUsedEmail,this.RolesUsedSMS,this.ResponseStatus}); GetRolesForAutomationNotificationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AllRoles = JsonConverters.fromJson(json['AllRoles'],'List',context!); RolesUsedEmail = JsonConverters.fromJson(json['RolesUsedEmail'],'List',context!); RolesUsedSMS = JsonConverters.fromJson(json['RolesUsedSMS'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'AllRoles': JsonConverters.toJson(AllRoles,'List',context!), 'RolesUsedEmail': JsonConverters.toJson(RolesUsedEmail,'List',context!), 'RolesUsedSMS': JsonConverters.toJson(RolesUsedSMS,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetRolesForAutomationNotificationsResponse"; TypeContext? context = _ctx; } /** * Get eligible roles for automation notifications */ // @Route("/automation/notification/{ObjectId}/roles", "GET") // @Api(Description="Get eligible roles for automation notifications") // @ApiResponse(Description="A list of roles that are eligible to be assigned to a notification.") class GetRolesForAutomationNotifications extends GetRolesForAutomationNotificationsResponse implements IReturn, IConvertible, IGet { /** * Object the notification will be for. Used to exclude any currently assigned roles. */ // @ApiMember(Description="Object the notification will be for. Used to exclude any currently assigned roles.", ParameterType="path") String? ObjectId; GetRolesForAutomationNotifications({this.ObjectId}); GetRolesForAutomationNotifications.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ObjectId = json['ObjectId']; return this; } Map toJson() => super.toJson()..addAll({ 'ObjectId': ObjectId }); createResponse() => GetRolesForAutomationNotificationsResponse(); getResponseTypeName() => "GetRolesForAutomationNotificationsResponse"; getTypeName() => "GetRolesForAutomationNotifications"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'GroupedListItemModel': TypeInfo(TypeOf.Class, create:() => GroupedListItemModel()), 'GetRolesForAutomationNotificationsResponse': TypeInfo(TypeOf.Class, create:() => GetRolesForAutomationNotificationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetRolesForAutomationNotifications': TypeInfo(TypeOf.Class, create:() => GetRolesForAutomationNotifications()), });