StackTraceElement.fromJson constructor Null safety

StackTraceElement.fromJson(
  1. Map _json
)

Implementation

StackTraceElement.fromJson(core.Map _json)
    : this(
        position: _json.containsKey('position')
            ? Position.fromJson(
                _json['position'] as core.Map<core.String, core.dynamic>)
            : null,
        routine: _json.containsKey('routine')
            ? _json['routine'] as core.String
            : null,
        step: _json.containsKey('step') ? _json['step'] as core.String : null,
      );