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