toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  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;
  }
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.relation != null) {
    json[r'relation'] = this.relation;
  } else {
    json[r'relation'] = null;
  }
  return json;
}