toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    if (uid != null) "uid": uid,
    if (displayName != null) "displayName": displayName,
    if (phoneNumber != null) "phoneNumber": phoneNumber,
    if (email != null) "email": email,
    if (photoURL != null) "photoURL": photoURL,
    if (role != null) "role": role,
    if (state != null) "state": state,
    if (disabled != null) "disabled": disabled,
  };
}