toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userID'] = userID;
  data['friendRemark'] = friendRemark;
  data['friendGroups'] = friendGroups;
  data['friendCustomInfo'] = friendCustomInfo;
  if (userProfile != null) {
    data['userProfile'] = userProfile!.toJson();
  }
  return data;
}