toDocument method Null safety

Map<String, Object?> toDocument()

Implementation

Map<String, Object?> toDocument();