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