BulkProjectPermissionGrants.fromJson constructor

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

Implementation

factory BulkProjectPermissionGrants.fromJson(Map<String, Object?> json) {
  return BulkProjectPermissionGrants(
    issues: (json[r'issues'] as List<Object?>?)
            ?.map((i) => (i as num?)?.toInt() ?? 0)
            .toList() ??
        [],
    permission: json[r'permission'] as String? ?? '',
    projects: (json[r'projects'] as List<Object?>?)
            ?.map((i) => (i as num?)?.toInt() ?? 0)
            .toList() ??
        [],
  );
}