Bin.fromJson constructor Null safety

Bin.fromJson(
  1. Map _json
)

Implementation

Bin.fromJson(core.Map _json)
    : this(
        density: _json.containsKey('density')
            ? (_json['density'] as core.num).toDouble()
            : null,
        end: _json.containsKey('end') ? _json['end'] : null,
        start: _json.containsKey('start') ? _json['start'] : null,
      );