BacklightInfo.fromJson constructor

BacklightInfo.fromJson(
  1. Map json_
)

Implementation

BacklightInfo.fromJson(core.Map json_)
    : this(
        brightness: json_.containsKey('brightness')
            ? json_['brightness'] as core.int
            : null,
        maxBrightness: json_.containsKey('maxBrightness')
            ? json_['maxBrightness'] as core.int
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
      );