toFirebaseJson method

Map<String, dynamic> toFirebaseJson()

Implementation

Map<String, dynamic> toFirebaseJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.id != null) data['id'] = this.id;
  if (this.uid != null) data['uid'] = this.uid;
  if (this.firstName != null) data['first_name'] = this.firstName;
  if (this.lastName != null) data['last_name'] = this.lastName;
  if (this.email != null) data['email'] = this.email;
  if (this.displayName != null) data['display_name'] = this.displayName;
  if (this.password != null) data['password'] = this.password;
  if (this.profileImage != null) data['profile_image'] = this.profileImage;
  if (this.isOnline != null) data['isOnline'] = this.isOnline;
  if (this.updatedAt != null) data['updated_at'] = this.updatedAt;
  if (this.createdAt != null) data['created_at'] = this.createdAt;
  return data;
}