toPayload method
Implementation
Map<String, dynamic> toPayload() {
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.millisecondsSinceEpoch,
'profilePictureURL': this.profilePictureURL,
'appIdentifier': this.appIdentifier,
'fcmToken': this.fcmToken,
'photos': this.photos,
};
}