toJson method

Map<String, dynamic> toJson()

Implementation

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