copyWith method

MicrosoftTokenResponse copyWith({
  1. String? tokenType,
  2. int? expiresIn,
  3. String? scope,
  4. String? accessToken,
  5. String? refreshToken,
  6. String? userId,
})

Implementation

MicrosoftTokenResponse copyWith({
  String? tokenType,
  int? expiresIn,
  String? scope,
  String? accessToken,
  String? refreshToken,
  String? userId,
}) {
  return MicrosoftTokenResponse(
    tokenType: tokenType ?? this.tokenType,
    expiresIn: expiresIn ?? this.expiresIn,
    scope: scope ?? this.scope,
    accessToken: accessToken ?? this.accessToken,
    refreshToken: refreshToken ?? this.refreshToken,
    userId: userId ?? this.userId,
  );
}