LightDimming.fromJson constructor
Creates a LightDimming object from the JSON response to a GET request.
Implementation
factory LightDimming.fromJson(Map<String, dynamic> dataMap) {
return LightDimming(
brightness: dataMap[ApiFields.brightness] ?? 0.0,
);
}