copyWith method

QuickbooksOauth2Tokens copyWith({
  1. int? xRefreshTokenExpiresIn,
  2. int? expiresIn,
  3. DateTime? refreshTokenExpireDate,
  4. DateTime? accessTokenExpireDate,
  5. String? refreshToken,
  6. String? accessToken,
  7. String? tokenType,
  8. String? companyId,
})

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,
  );
}