KeyLightSettings.fromJSON constructor
KeyLightSettings.fromJSON(
- dynamic json
Implementation
KeyLightSettings.fromJSON(dynamic json)
: assert(json is Map),
powerOnBehavior = json['powerOnBehavior'],
powerOnBrightness = json['powerOnBrightness'],
powerOnTemperature = json['powerOnTemperature'],
switchOnDurationMs = json['switchOnDurationMs'],
switchOffDurationMs = json['switchOffDurationMs'],
colorChangeDurationMs = json['colorChangeDurationMs'];