toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
  if (this.emailAddress != null) {
    json[r'email_address'] = this.emailAddress;
  } else {
    json[r'email_address'] = null;
  }
  if (this.firstName != null) {
    json[r'first_name'] = this.firstName;
  } else {
    json[r'first_name'] = null;
  }
  if (this.lastName != null) {
    json[r'last_name'] = this.lastName;
  } else {
    json[r'last_name'] = null;
  }
  return json;
}