toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.role != null) {
    json[r'role'] = this.role;
  } else {
    json[r'role'] = null;
  }
  if (this.gender != null) {
    json[r'gender'] = this.gender;
  } else {
    json[r'gender'] = null;
  }
  if (this.personalInformation != null) {
    json[r'personalInformation'] = this.personalInformation;
  } else {
    json[r'personalInformation'] = null;
  }
  return json;
}