RegionProto.fromJson constructor

RegionProto.fromJson(
  1. Map _json
)

Implementation

RegionProto.fromJson(core.Map _json)
    : this(
        heightPx: _json.containsKey('heightPx')
            ? _json['heightPx'] as core.int
            : null,
        leftPx:
            _json.containsKey('leftPx') ? _json['leftPx'] as core.int : null,
        topPx: _json.containsKey('topPx') ? _json['topPx'] as core.int : null,
        widthPx: _json.containsKey('widthPx')
            ? _json['widthPx'] as core.int
            : null,
      );