/* Options: Date: 2025-09-03 18: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: AddUserToBlockListRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$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 BlockListResponse implements IConvertible { ResponseStatus? responseStatus; OrganisationNotificationSettings? notificationSettings; BlockListResponse({this.responseStatus,this.notificationSettings}); BlockListResponse.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() => "BlockListResponse"; TypeContext? context = _ctx; } // @Route("/organisations/{Id}/blocklist", "POST") class AddUserToBlockListRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? id; String? userId; AddUserToBlockListRequest({this.id,this.userId}); AddUserToBlockListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; userId = json['userId']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'userId': userId }); createResponse() => BlockListResponse(); getResponseTypeName() => "BlockListResponse"; getTypeName() => "AddUserToBlockListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'OrganisationNotificationSettings': TypeInfo(TypeOf.Class, create:() => OrganisationNotificationSettings()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'BlockListResponse': TypeInfo(TypeOf.Class, create:() => BlockListResponse()), 'AddUserToBlockListRequest': TypeInfo(TypeOf.Class, create:() => AddUserToBlockListRequest()), });