toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.phone != null) {
    json[r'phone'] = this.phone;
  } else {
    json[r'phone'] = null;
  }
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.website != null) {
    json[r'website'] = this.website;
  } else {
    json[r'website'] = null;
  }
  if (this.address != null) {
    json[r'address'] = this.address;
  } else {
    json[r'address'] = null;
  }
  return json;
}