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