BulkPermissionsRequestBean.fromJson constructor

BulkPermissionsRequestBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory BulkPermissionsRequestBean.fromJson(Map<String, Object?> json) {
  return BulkPermissionsRequestBean(
    accountId: json[r'accountId'] as String?,
    globalPermissions: (json[r'globalPermissions'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    projectPermissions: (json[r'projectPermissions'] as List<Object?>?)
            ?.map((i) => BulkProjectPermissions.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}