Size.fromJson constructor

Size.fromJson(
  1. Map _json
)

Implementation

Size.fromJson(core.Map _json)
    : this(
        height:
            _json.containsKey('height') ? _json['height'] as core.int : null,
        width: _json.containsKey('width') ? _json['width'] as core.int : null,
      );