toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['userID'] = this.userID;
if (this.friendRemark != null) data['friendRemark'] = this.friendRemark;
if (this.addWording != null) data['addWording'] = this.addWording;
if (this.addSource != null) data['addSource'] = this.addSource;
data['addType'] = FriendTypeTool.toInt(this.addType);
return data;
}