toJson method

Map<String, dynamic> toJson()

to json map

Implementation

Map<String, dynamic> toJson() {
  return {"device_id": deviceId, "device_name": deviceName};
}