CallFrame.fromJson constructor

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

Implementation

factory CallFrame.fromJson(Map<String, dynamic> json) {
  return CallFrame(
    callFrameId: CallFrameId.fromJson(json['callFrameId'] as String),
    functionName: json['functionName'] as String,
    functionLocation:
        json.containsKey('functionLocation')
            ? Location.fromJson(
              json['functionLocation'] as Map<String, dynamic>,
            )
            : null,
    location: Location.fromJson(json['location'] as Map<String, dynamic>),
    scopeChain:
        (json['scopeChain'] as List)
            .map((e) => Scope.fromJson(e as Map<String, dynamic>))
            .toList(),
    this$: runtime.RemoteObject.fromJson(
      json['this'] as Map<String, dynamic>,
    ),
    returnValue:
        json.containsKey('returnValue')
            ? runtime.RemoteObject.fromJson(
              json['returnValue'] as Map<String, dynamic>,
            )
            : null,
    canBeRestarted:
        json.containsKey('canBeRestarted')
            ? json['canBeRestarted'] as bool
            : null,
  );
}