toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userID'] = userID;
  data['nickName'] = nickName;
  data['nameCard'] = nameCard;
  data['friendRemark'] = friendRemark;
  data['faceUrl'] = faceUrl;
  data["onlineDevices"] = onlineDevices ?? [];

  return data;
}