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