toMap method
Implementation
@override
Map<String, Object?> toMap() {
final data = <String, Object?>{
'expiry': expiry.toIso8601String(),
'documentId': documentId,
'version': version,
'name': name,
'documentDescription': documentDescription
};
data.removeWhere((key, value) => value == null);
return data;
}