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,
      );