toJson method
Converts a TokenReviewSpec instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempAudiences = audiences;
final tempToken = token;
if (tempAudiences != null) {
jsonData['audiences'] = tempAudiences;
}
if (tempToken != null) {
jsonData['token'] = tempToken;
}
return jsonData;
}