Scope.fromJson constructor

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

Implementation

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