toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
    json[r'email'] = this.email;
  if (this.phone != null) {
    json[r'phone'] = this.phone;
  } else {
    json[r'phone'] = null;
  }
    json[r'message'] = this.message;
  if (this.user != null) {
    json[r'user'] = this.user;
  } else {
    json[r'user'] = null;
  }
  if (this.postcode != null) {
    json[r'postcode'] = this.postcode;
  } else {
    json[r'postcode'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.campaign != null) {
    json[r'campaign'] = this.campaign;
  } else {
    json[r'campaign'] = null;
  }
  return json;
}