timestampToDateTime function
Implementation
@override
DateTime timestampToDateTime(dynamic value) {
if (value is Timestamp) {
return value.toDate();
} else if (value is DateTime) {
return value;
}
throw ArgumentError('Invalid timestamp format');
}