toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final password = this.password;
  final username = this.username;
  return {
    if (password != null) 'Password': password,
    if (username != null) 'Username': username,
  };
}