StackFrame.fromJson constructor

StackFrame.fromJson(
  1. Map json_
)

Implementation

StackFrame.fromJson(core.Map json_)
    : this(
        columnNumber: json_.containsKey('columnNumber')
            ? json_['columnNumber'] as core.String
            : null,
        fileName: json_.containsKey('fileName')
            ? TruncatableString.fromJson(
                json_['fileName'] as core.Map<core.String, core.dynamic>)
            : null,
        functionName: json_.containsKey('functionName')
            ? TruncatableString.fromJson(
                json_['functionName'] as core.Map<core.String, core.dynamic>)
            : null,
        lineNumber: json_.containsKey('lineNumber')
            ? json_['lineNumber'] as core.String
            : null,
        loadModule: json_.containsKey('loadModule')
            ? Module.fromJson(
                json_['loadModule'] as core.Map<core.String, core.dynamic>)
            : null,
        originalFunctionName: json_.containsKey('originalFunctionName')
            ? TruncatableString.fromJson(json_['originalFunctionName']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceVersion: json_.containsKey('sourceVersion')
            ? TruncatableString.fromJson(
                json_['sourceVersion'] as core.Map<core.String, core.dynamic>)
            : null,
      );