OverlayPosition.fromJson constructor

OverlayPosition.fromJson(
  1. Map json_
)

Implementation

OverlayPosition.fromJson(core.Map json_)
    : this(
        anchorCell: json_.containsKey('anchorCell')
            ? GridCoordinate.fromJson(
                json_['anchorCell'] as core.Map<core.String, core.dynamic>)
            : null,
        heightPixels: json_['heightPixels'] as core.int?,
        offsetXPixels: json_['offsetXPixels'] as core.int?,
        offsetYPixels: json_['offsetYPixels'] as core.int?,
        widthPixels: json_['widthPixels'] as core.int?,
      );