toJson method

Map<String, dynamic> toJson()

Get Map from NearbyDeviceInfo.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'displayName': displayName,
  };
}