LightSettings.fromJson constructor

LightSettings.fromJson(
  1. 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,
      );