toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['are_friends'] = this.areFriends;
data['is_fan'] = this.isFan;
data['is_following'] = this.isFollowing;
data['is_following_replurk'] = this.isFollowingReplurk;
data['friend_status'] = this.friendStatus;
data['blocked_by_me'] = this.blockedByMe;
data['alias'] = this.alias;
data['has_read_permission'] = this.hasReadPermission;
if (this.plurks != null) {
data['plurks'] = this.plurks!.map((v) => v.toJson()).toList();
}
if (this.userInfo != null) {
data['user_info'] = this.userInfo!.toJson();
}
data['friends_count'] = this.friendsCount;
data['fans_count'] = this.fansCount;
data['privacy'] = this.privacy;
data['alerts_count'] = this.alertsCount;
data['unread_count'] = this.unreadCount;
data['error_text'] = this.errorText;
data['success_text'] = this.successText;
return data;
}