SignedExchangeHeader.fromJson constructor
SignedExchangeHeader.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SignedExchangeHeader.fromJson(Map<String, dynamic> json) {
return SignedExchangeHeader(
requestUrl: json['requestUrl'] as String,
responseCode: json['responseCode'] as int,
responseHeaders:
Headers.fromJson(json['responseHeaders'] as Map<String, dynamic>),
signatures: (json['signatures'] as List)
.map((e) =>
SignedExchangeSignature.fromJson(e as Map<String, dynamic>))
.toList(),
headerIntegrity: json['headerIntegrity'] as String,
);
}