ResourceTiming.fromJson constructor
ResourceTiming.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourceTiming.fromJson(Map<String, dynamic> json) {
return ResourceTiming(
requestTime: json['requestTime'] as num,
proxyStart: json['proxyStart'] as num,
proxyEnd: json['proxyEnd'] as num,
dnsStart: json['dnsStart'] as num,
dnsEnd: json['dnsEnd'] as num,
connectStart: json['connectStart'] as num,
connectEnd: json['connectEnd'] as num,
sslStart: json['sslStart'] as num,
sslEnd: json['sslEnd'] as num,
workerStart: json['workerStart'] as num,
workerReady: json['workerReady'] as num,
workerFetchStart: json['workerFetchStart'] as num,
workerRespondWithSettled: json['workerRespondWithSettled'] as num,
sendStart: json['sendStart'] as num,
sendEnd: json['sendEnd'] as num,
pushStart: json['pushStart'] as num,
pushEnd: json['pushEnd'] as num,
receiveHeadersEnd: json['receiveHeadersEnd'] as num,
);
}