toJson method

Map<String, dynamic> toJson()

Implementation

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