copyWith method
Implementation
QuickbooksOauth2Tokens copyWith({
int? xRefreshTokenExpiresIn,
int? expiresIn,
DateTime? refreshTokenExpireDate,
DateTime? accessTokenExpireDate,
String? refreshToken,
String? accessToken,
String? tokenType,
String? companyId,
}) {
return QuickbooksOauth2Tokens(
xRefreshTokenExpiresIn:
xRefreshTokenExpiresIn ?? this.xRefreshTokenExpiresIn,
expiresIn: expiresIn ?? this.expiresIn,
refreshTokenExpireDate:
refreshTokenExpireDate ?? this.refreshTokenExpireDate,
accessTokenExpireDate:
accessTokenExpireDate ?? this.accessTokenExpireDate,
refreshToken: refreshToken ?? this.refreshToken,
accessToken: accessToken ?? this.accessToken,
tokenType: tokenType ?? this.tokenType,
companyId: companyId ?? this.companyId,
);
}