LightSettings.fromJson constructor
LightSettings.fromJson(
- Map _json
Implementation
LightSettings.fromJson(core.Map _json)
: this(
color: _json.containsKey('color')
? Color.fromJson(
_json['color'] as core.Map<core.String, core.dynamic>)
: null,
lightOffDuration: _json.containsKey('lightOffDuration')
? _json['lightOffDuration'] as core.String
: null,
lightOnDuration: _json.containsKey('lightOnDuration')
? _json['lightOnDuration'] as core.String
: null,
);