toJson method
Implementation
Map toJson() {
Map data = Map();
data['userId'] = userId;
if (nickName != null) {
data['nickName'] = nickName;
}
if (avatarUrl != null) {
data['avatarUrl'] = avatarUrl;
}
if (mail != null) {
data['mail'] = mail;
}
if (phone != null) {
data['phone'] = phone;
}
data['gender'] = gender;
if (sign != null) {
data['sign'] = sign;
}
if (birth != null) {
data['birth'] = birth;
}
if (ext != null) {
data['ext'] = ext;
}
return data;
}