copyWith method

MinecraftTokenResponse copyWith({
  1. String? username,
  2. List<String>? roles,
  3. String? accessToken,
  4. String? tokenType,
  5. int? expiresIn,
})

Implementation

MinecraftTokenResponse copyWith({
  String? username,
  List<String>? roles,
  String? accessToken,
  String? tokenType,
  int? expiresIn,
}) {
  return MinecraftTokenResponse(
    username: username ?? this.username,
    roles: roles ?? this.roles,
    accessToken: accessToken ?? this.accessToken,
    tokenType: tokenType ?? this.tokenType,
    expiresIn: expiresIn ?? this.expiresIn,
  );
}