toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  photos.toList().removeWhere((element) => element == null);
  return {
    "email": this.email,
    "firstName": this.firstName,
    "lastName": this.lastName,
    "settings": this.settings.toJson(),
    "phoneNumber": this.phoneNumber,
    "id": this.userID,
    'active': this.active,
    'lastOnlineTimestamp': this.lastOnlineTimestamp,
    "profilePictureURL": this.profilePictureURL,
    'appIdentifier': this.appIdentifier,
    'fcmToken': this.fcmToken,
    'photos': this.photos,
  };
}