StackFrame.fromMap constructor

StackFrame.fromMap(
  1. Map<String, Object?> obj
)

Implementation

StackFrame.fromMap(Map<String, Object?> obj)
    : canRestart = obj['canRestart'] as bool?,
      column = obj['column'] as int,
      endColumn = obj['endColumn'] as int?,
      endLine = obj['endLine'] as int?,
      id = obj['id'] as int,
      instructionPointerReference =
          obj['instructionPointerReference'] as String?,
      line = obj['line'] as int,
      moduleId = obj['moduleId'] is int
          ? Either2<int, String>.t1(obj['moduleId'] as int)
          : obj['moduleId'] is String
              ? Either2<int, String>.t2(obj['moduleId'] as String)
              : null,
      name = obj['name'] as String,
      presentationHint = obj['presentationHint'] as String?,
      source = obj['source'] == null
          ? null
          : Source.fromJson(obj['source'] as Map<String, Object?>);