copy method
Returns a copy of this APICredential.
Implementation
APICredential copy(
{bool withUsernameEntity = true,
bool withPassword = true,
bool withToken = true}) =>
APICredential._(username, withUsernameEntity ? usernameEntity : null,
withPassword ? password : null, withToken ? token : null);