toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.firstName != null) {
    json[r'first_name'] = this.firstName;
  } else {
    json[r'first_name'] = null;
  }
  if (this.lastName != null) {
    json[r'last_name'] = this.lastName;
  } else {
    json[r'last_name'] = null;
  }
    json[r'display_name'] = this.displayName;
    json[r'full_name'] = this.fullName;
    json[r'feedback_required_count'] = this.feedbackRequiredCount;
  if (this.phoneNumber != null) {
    json[r'phone_number'] = this.phoneNumber;
  } else {
    json[r'phone_number'] = null;
  }
  if (this.isPhoneConfirmed != null) {
    json[r'is_phone_confirmed'] = this.isPhoneConfirmed;
  } else {
    json[r'is_phone_confirmed'] = null;
  }
  if (this.ref != null) {
    json[r'ref'] = this.ref;
  } else {
    json[r'ref'] = null;
  }
  if (this.hasCreditCard != null) {
    json[r'has_credit_card'] = this.hasCreditCard;
  } else {
    json[r'has_credit_card'] = null;
  }
  if (this.gender != null) {
    json[r'gender'] = this.gender;
  } else {
    json[r'gender'] = null;
  }
  if (this.skypeAddress != null) {
    json[r'skype_address'] = this.skypeAddress;
  } else {
    json[r'skype_address'] = null;
  }
  if (this.rating != null) {
    json[r'rating'] = this.rating;
  } else {
    json[r'rating'] = null;
  }
  if (this.photo != null) {
    json[r'photo'] = this.photo;
  } else {
    json[r'photo'] = null;
  }
    json[r'interests'] = this.interests;
  if (this.emailVerified != null) {
    json[r'email_verified'] = this.emailVerified;
  } else {
    json[r'email_verified'] = null;
  }
    json[r'email'] = this.email;
  return json;
}