StackFrames.fromJson constructor Null safety

StackFrames.fromJson(
  1. Map _json
)

Implementation

StackFrames.fromJson(core.Map _json)
    : this(
        droppedFramesCount: _json.containsKey('droppedFramesCount')
            ? _json['droppedFramesCount'] as core.int
            : null,
        frame: _json.containsKey('frame')
            ? (_json['frame'] as core.List)
                .map((value) => StackFrame.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );