toJson method Null safety

Map<String, Object?> toJson()

The current instance as a Map.

Implementation

Map<String, Object?> toJson() {
  return {
    'pairingCode': pairingCode,
    'paired': paired,
    'name': name,
    'userID': userID,
    'lastUpdated': Timestamp.fromDate(lastUpdated),
    'screenToken': screenToken,
    'width': width,
    'height': height,
  };
}