Map<String, dynamic>? toMap() { if (this == null || !this!.exists) { return null; } return this?.data() as Map<String, dynamic>?; }