toFirestore method

Map<String, dynamic> toFirestore()

Implementation

Map<String, dynamic> toFirestore() {
  return {
    if (id != null) "id": id,
    if (name != null) "name": name,
    if (phoneNumber != null) "phoneNumber": phoneNumber,
    if (email != null) "email": email,
    if (schoolName != null) "schoolName": schoolName,
    if (idAuth != null) "idAuth": idAuth,
  };
}