$Size.fromJson constructor Null safety

$Size.fromJson(
  1. Map _json
)

Implementation

$Size.fromJson(core.Map _json)
    : this(
        height:
            _json.containsKey('height') ? _json['height'] as core.int : null,
        iab: _json.containsKey('iab') ? _json['iab'] as core.bool : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        width: _json.containsKey('width') ? _json['width'] as core.int : null,
      );