DateTime? parseTimestamp({ required JsonMap json, required String key, }) { return (json[key] as Timestamp?)?.toDate(); }