StatusScope.fromJson constructor

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

Implementation

factory StatusScope.fromJson(Map<String, Object?> json) {
  return StatusScope(
    project: json[r'project'] != null
        ? ProjectId.fromJson(json[r'project']! as Map<String, Object?>)
        : null,
    type: StatusScopeType.fromValue(json[r'type'] as String? ?? ''),
  );
}