$Linear.fromJson constructor Null safety

$Linear.fromJson(
  1. Map _json
)

Implementation

$Linear.fromJson(core.Map _json)
    : this(
        numFiniteBuckets: _json.containsKey('numFiniteBuckets')
            ? _json['numFiniteBuckets'] as core.int
            : null,
        offset: _json.containsKey('offset')
            ? (_json['offset'] as core.num).toDouble()
            : null,
        width: _json.containsKey('width')
            ? (_json['width'] as core.num).toDouble()
            : null,
      );