/* Options: Date: 2025-09-03 19:59:28 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NotificationRolesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PutOperationUnTenanted implements IPut { PutOperationUnTenanted(); PutOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class OrganisationNotificationSettings implements IIdentifiableResource, IConvertible { List? warningNotificationRoles; List? jobFinishedNotificationRoles; List? userIdBlockList; String? id; OrganisationNotificationSettings({this.warningNotificationRoles,this.jobFinishedNotificationRoles,this.userIdBlockList,this.id}); OrganisationNotificationSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { warningNotificationRoles = JsonConverters.fromJson(json['warningNotificationRoles'],'List',context!); jobFinishedNotificationRoles = JsonConverters.fromJson(json['jobFinishedNotificationRoles'],'List',context!); userIdBlockList = JsonConverters.fromJson(json['userIdBlockList'],'List',context!); id = json['id']; return this; } Map toJson() => { 'warningNotificationRoles': JsonConverters.toJson(warningNotificationRoles,'List',context!), 'jobFinishedNotificationRoles': JsonConverters.toJson(jobFinishedNotificationRoles,'List',context!), 'userIdBlockList': JsonConverters.toJson(userIdBlockList,'List',context!), 'id': id }; getTypeName() => "OrganisationNotificationSettings"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class NotificationRolesResponse implements IConvertible { ResponseStatus? responseStatus; OrganisationNotificationSettings? notificationSettings; NotificationRolesResponse({this.responseStatus,this.notificationSettings}); NotificationRolesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); notificationSettings = JsonConverters.fromJson(json['notificationSettings'],'OrganisationNotificationSettings',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'notificationSettings': JsonConverters.toJson(notificationSettings,'OrganisationNotificationSettings',context!) }; getTypeName() => "NotificationRolesResponse"; TypeContext? context = _ctx; } // @Route("/organisations/{Id}/notification/roles/{ActionType}", "PUT") class NotificationRolesRequest extends PutOperationUnTenanted implements IReturn, IConvertible { String? id; String? actionType; List? roles; NotificationRolesRequest({this.id,this.actionType,this.roles}); NotificationRolesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; actionType = json['actionType']; roles = JsonConverters.fromJson(json['roles'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'actionType': actionType, 'roles': JsonConverters.toJson(roles,'List',context!) }); createResponse() => NotificationRolesResponse(); getResponseTypeName() => "NotificationRolesResponse"; getTypeName() => "NotificationRolesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'PutOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'OrganisationNotificationSettings': TypeInfo(TypeOf.Class, create:() => OrganisationNotificationSettings()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'NotificationRolesResponse': TypeInfo(TypeOf.Class, create:() => NotificationRolesResponse()), 'NotificationRolesRequest': TypeInfo(TypeOf.Class, create:() => NotificationRolesRequest()), });