Device.fromJson constructor

Device.fromJson(
  1. dynamic json
)

Implementation

factory Device.fromJson(json) {
  return Device(json["deviceId"], json["deviceName"], json["state"]);
}