TokenRequest.fromJson constructor
Creates a TokenRequest from JSON data.
Implementation
factory TokenRequest.fromJson(Map<String, dynamic> json) {
final tempAudienceJson = json['audience'];
final tempExpirationSecondsJson = json['expirationSeconds'];
final String tempAudience = tempAudienceJson;
final int? tempExpirationSeconds = tempExpirationSecondsJson;
return TokenRequest(
audience: tempAudience,
expirationSeconds: tempExpirationSeconds,
);
}