toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (authMethod != null) {
    _json[r'auth_method'] = authMethod;
  }
  if (username != null) {
    _json[r'username'] = username;
  }
  return _json;
}