LightColorTemperatureDelta.fromJson constructor
Creates a LightColorTemperatureDelta object from the JSON response to a GET request.
Implementation
factory LightColorTemperatureDelta.fromJson(Map<String, dynamic> dataMap) {
return LightColorTemperatureDelta(
action: LightColorTemperatureDeltaAction.fromString(
dataMap[ApiFields.action] ?? ""),
delta: dataMap[ApiFields.mirekDelta],
);
}