BugsnagStackframe.fromJson constructor

BugsnagStackframe.fromJson(
  1. Map<String, Object?> json
)

Implementation

BugsnagStackframe.fromJson(Map<String, Object?> json)
    : type = json
          .safeGet<String>('type')
          ?.let((name) => BugsnagErrorType.forName(name)),
      file = json.safeGet('file'),
      lineNumber = json.safeGet<num>('lineNumber')?.toInt(),
      columnNumber = json.safeGet<num>('columnNumber')?.toInt(),
      method = json.safeGet('method'),
      inProject = json.safeGet('inProject'),
      frameAddress = _getAddress(json['frameAddress']),
      loadAddress = _getAddress(json['loadAddress']),
      isLR = json.safeGet('isLR'),
      isPC = json.safeGet('isPC'),
      symbolAddress = _getAddress(json['symbolAddress']),
      machoFile = json.safeGet('machoFile'),
      machoLoadAddress = json.safeGet('machoLoadAddress'),
      machoUUID = json.safeGet('machoUUID'),
      machoVMAddress = json.safeGet('machoVMAddress'),
      codeIdentifier = json.safeGet('codeIdentifier');