ScriptStatistics.fromJson constructor

ScriptStatistics.fromJson(
  1. Map json_
)

Implementation

ScriptStatistics.fromJson(core.Map json_)
    : this(
        evaluationKind: json_.containsKey('evaluationKind')
            ? json_['evaluationKind'] as core.String
            : null,
        stackFrames: json_.containsKey('stackFrames')
            ? (json_['stackFrames'] as core.List)
                .map((value) => ScriptStackFrame.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );