toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (firstName != null) {
    _json[r'first_name'] = firstName;
  }
  if (lastName != null) {
    _json[r'last_name'] = lastName;
  }
  if (username != null) {
    _json[r'username'] = username;
  }
  if (gender != null) {
    _json[r'gender'] = gender;
  }
  return _json;
}