toJson method
Converts a TokenRequest instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempAudience = audience;
final tempExpirationSeconds = expirationSeconds;
jsonData['audience'] = tempAudience;
if (tempExpirationSeconds != null) {
jsonData['expirationSeconds'] = tempExpirationSeconds;
}
return jsonData;
}