toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['nation_code'] = this.nationCode;
  data['id'] = this.id;
  data['fb_id'] = this.fbId;
  data['apple_id'] = this.appleId;
  data['google_id'] = this.googleId;
  data['email'] = this.email;
  data['fnama'] = this.fnama;
  data['lnama'] = this.lnama;
  data['latitude'] = this.latitude;
  data['longitude'] = this.longitude;
  data['kelamin'] = this.kelamin;
  data['bdate'] = this.bdate;
  data['cdate'] = this.cdate;
  data['adate'] = this.adate;
  data['edate'] = this.edate;
  data['kode_referral'] = this.kodeReferral;
  data['telp'] = this.telp;
  data['image'] = this.image;
  data['intro_teks'] = this.introTeks;
  data['bio'] = this.bio;
  data['website'] = this.website;
  data['is_blocked'] = isBlocked;
  data['image_banner'] = this.imageBanner;
  data['api_social_id'] = this.apiSocialId;
  data['fcm_token'] = this.fcmToken;
  data['device'] = this.device;
  data['is_agree'] = this.isAgree;
  data['is_confirmed'] = this.isConfirmed;
  data['is_active'] = this.isActive;
  data['language_id'] = this.language_id;
  data['telp_is_verif'] = this.telpIsVerif;
  data['api_mobile_edate'] = this.apiMobileEdate;
  data['b_user_id_recruiter'] = this.buserRecuiter;
  data['bKodeRecuiter'] = this.bKodeRecuiter;
  data['bNamaRecuiter'] = this.bNamaRecuiter;
  data['is_follow'] = isFollow;
  if (Config.AppVersion == VersionApps.indonesia) {
    data['is_changed_address'] = this.isChangedAddress;
    data['country_origin'] = this.country;
  }
  data['is_reset_password'] = this.isResetPassword;
  if (Config.AppVersion == VersionApps.indonesia) {
    data['total_product'] = this.totalProduct;
  }
  if (this.defaultAddress != null) {
    data['default_address'] = this.defaultAddress?.toJson();
  }
  data['apisess'] = this.apisess;
  data['apisess_expired'] = this.apisessExpired;
  data['can_input_referral'] = this.canInputReferral;
  return data;
}