toMap method
override
Converts the object to a map for serialization.
Implementation
@override
Map<String, dynamic> toMap() {
return {
'metadataType': metadataType.value,
'title': title,
'artist': artist,
'location': location,
'latitude': latitude,
'longitude': longitude,
'width': width,
'height': height,
'creationDateTime': creationDateTime?.millisecondsSinceEpoch,
};
}