Scope.fromJson constructor

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

Implementation

factory Scope.fromJson(Map<String, dynamic> json) {
  return Scope(
    type: ScopeType.fromJson(json['type'] as String),
    object:
        runtime.RemoteObject.fromJson(json['object'] as Map<String, dynamic>),
    name: json.containsKey('name') ? json['name'] as String : null,
    startLocation: json.containsKey('startLocation')
        ? Location.fromJson(json['startLocation'] as Map<String, dynamic>)
        : null,
    endLocation: json.containsKey('endLocation')
        ? Location.fromJson(json['endLocation'] as Map<String, dynamic>)
        : null,
  );
}