LightColorTemperatureMirekSchema.fromJson constructor
Creates a LightColorTemperatureMirekSchema object from the JSON response to a GET request.
Implementation
factory LightColorTemperatureMirekSchema.fromJson(
Map<String, dynamic> dataMap) {
return LightColorTemperatureMirekSchema(
min: dataMap[ApiFields.mirekMinimum] ?? 153,
max: dataMap[ApiFields.mirekMaximum] ?? 500,
);
}