TokenReviewSpec.fromJson constructor
Creates a TokenReviewSpec from JSON data.
Implementation
factory TokenReviewSpec.fromJson(Map<String, dynamic> json) {
final tempAudiencesJson = json['audiences'];
final tempTokenJson = json['token'];
final List<String>? tempAudiences =
tempAudiencesJson != null ? List<String>.from(tempAudiencesJson) : null;
final String? tempToken = tempTokenJson;
return TokenReviewSpec(
audiences: tempAudiences,
token: tempToken,
);
}