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