toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.errorMsg != null) {
    json[r'error_msg'] = this.errorMsg;
  } else {
    json[r'error_msg'] = null;
  }
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.agreedToTerms != null) {
    json[r'agreed_to_terms'] = this.agreedToTerms;
  } else {
    json[r'agreed_to_terms'] = null;
  }
  return json;
}