Size.fromJson constructor

Size.fromJson(
  1. Map json_
)

Implementation

Size.fromJson(core.Map json_)
  : this(
      height:
          json_.containsKey('height')
              ? Dimension.fromJson(
                json_['height'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      width:
          json_.containsKey('width')
              ? Dimension.fromJson(
                json_['width'] as core.Map<core.String, core.dynamic>,
              )
              : null,
    );