BulkProjectPermissions.fromJson constructor

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

Implementation

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