Response.fromJson constructor
Response.fromJson(
- Map<String, dynamic> json
)
Implementation
Response.fromJson(Map<String, dynamic> json)
: eTag = json['etag'],
mustRevalidate = json['mustRevalidate'],
noContent = json['noContent'],
modified = json['modified'] != null
? DateTime.fromMicrosecondsSinceEpoch(json['modified'])
: null,
source = ResponseSourceType.values[json['source']],
notModified = json['notModified'],
expires = json['expires'] != null
? DateTime.fromMicrosecondsSinceEpoch(json['expires'])
: null,
size = json['size'],
error = json['error'] != null ? Error.fromJson(json['error']) : null;