Display.fromJson constructor

Display.fromJson(
  1. Map json_
)

Implementation

Display.fromJson(core.Map json_)
    : this(
        density: json_.containsKey('density')
            ? json_['density'] as core.int
            : null,
        displayId: json_.containsKey('displayId')
            ? json_['displayId'] as core.int
            : null,
        height:
            json_.containsKey('height') ? json_['height'] as core.int : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        refreshRate: json_.containsKey('refreshRate')
            ? json_['refreshRate'] as core.int
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        width: json_.containsKey('width') ? json_['width'] as core.int : null,
      );