toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var phone = this.phone;
  var im = this.im;
  var website = this.website;
  var email = this.email;

  final json = <String, Object?>{};
  if (phone != null) {
    json[r'phone'] = phone;
  }
  if (im != null) {
    json[r'im'] = im;
  }
  if (website != null) {
    json[r'website'] = website;
  }
  if (email != null) {
    json[r'email'] = email;
  }
  return json;
}