toJson method
Implementation
Map<String, dynamic> toJson() {
final credential = this.credential;
final credentialProvider = this.credentialProvider;
return {
if (credential != null) 'Credential': credential,
if (credentialProvider != null) 'CredentialProvider': credentialProvider,
};
}