toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'domainName'] = this.domainName;
    json[r'port'] = this.port;
    json[r'emailAddress'] = this.emailAddress;
    json[r'isValid'] = this.isValid;
  if (this.error != null) {
    json[r'error'] = this.error;
  } else {
    json[r'error'] = null;
  }
  return json;
}