PopupWindowProperties.fromJson constructor

PopupWindowProperties.fromJson(
  1. Map json_
)

Implementation

PopupWindowProperties.fromJson(core.Map json_)
    : this(
        dimension: json_.containsKey('dimension')
            ? Size.fromJson(
                json_['dimension'] as core.Map<core.String, core.dynamic>)
            : null,
        offset: json_.containsKey('offset')
            ? OffsetPosition.fromJson(
                json_['offset'] as core.Map<core.String, core.dynamic>)
            : null,
        positionType: json_.containsKey('positionType')
            ? json_['positionType'] as core.String
            : null,
        showAddressBar: json_.containsKey('showAddressBar')
            ? json_['showAddressBar'] as core.bool
            : null,
        showMenuBar: json_.containsKey('showMenuBar')
            ? json_['showMenuBar'] as core.bool
            : null,
        showScrollBar: json_.containsKey('showScrollBar')
            ? json_['showScrollBar'] as core.bool
            : null,
        showStatusBar: json_.containsKey('showStatusBar')
            ? json_['showStatusBar'] as core.bool
            : null,
        showToolBar: json_.containsKey('showToolBar')
            ? json_['showToolBar'] as core.bool
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );