toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['has_profile_image'] = this.hasProfileImage;
  data['timeline_privacy'] = this.timelinePrivacy;
  data['nick_name'] = this.nickName;
  data['display_name'] = this.displayName;
  data['date_of_birth'] = this.dateOfBirth;
  data['avatar'] = this.avatar;
  data['gender'] = this.gender;
  data['karma'] = this.karma;
  data['premium'] = this.premium;
  data['enable_2fa'] = this.enable2fa;
  data['verified_account'] = this.verifiedAccount;
  data['dateformat'] = this.dateformat;
  data['default_lang'] = this.defaultLang;
  data['friend_list_privacy'] = this.friendListPrivacy;
  data['name_color'] = this.nameColor;
  data['full_name'] = this.fullName;
  data['location'] = this.location;
  data['timezone'] = this.timezone;
  data['bday_privacy'] = this.bdayPrivacy;
  data['plurks_count'] = this.plurksCount;
  data['response_count'] = this.responseCount;
  data['pinned_plurk_id'] = this.pinnedPlurkId;
  data['background_id'] = this.backgroundId;
  data['show_ads'] = this.showAds;
  data['show_location'] = this.showLocation;
  data['following'] = this.following;
  data['settings'] = this.settings;
  data['following_tl'] = this.following_tl;
  data['following_im'] = this.following_im;
  data['profile_views'] = this.profileViews;
  data['avatar_small'] = this.avatarSmall;
  data['avatar_medium'] = this.avatarMedium;
  data['avatar_big'] = this.avatarBig;
  data['about'] = this.about;
  data['about_renderred'] = this.aboutRenderred;
  data['page_title'] = this.pageTitle;
  data['recruited'] = this.recruited;
  data['relationship'] = this.relationship;
  data['friends_count'] = this.friendsCount;
  data['fans_count'] = this.fansCount;
  data['join_date'] = this.joinDate;
  data['privacy'] = this.privacy;
  data['accept_private_plurk_from'] = this.acceptPrivatePlurkFrom;
  data['post_anonymous_plurk'] = this.postAnonymousPlurk;
  data['badges'] = this.badges;
  data['link_facebook'] = this.linkFacebook;
  data['setup_facebook_sync'] = this.setupFacebookSync;
  data['setup_twitter_sync'] = this.setupTwitterSync;
  data['setup_weibo_sync'] = this.setupWeiboSync;
  if (this.filter != null) {
    data['filter'] = this.filter!.toJson();
  }
  data['following_count'] = this.followingCount;
  if (this.anniversary != null) {
    data['anniversary'] = this.anniversary!.toJson();
  }
  data['creature'] = this.creature;
  data['creature_url'] = this.creatureUrl;
  data['creature_special'] = this.creatureSpecial;
  data['creature_special_url'] = this.creatureSpecialUrl;
  data['email'] = this.email;
  data['email_confirmed'] = this.emailConfirmed;
  data['uid'] = this.uid;
  data['error_text'] = this.errorText;
  data['success_text'] = this.successText;
  return data;
}