WebPage.fromJson constructor
WebPage.fromJson(
- Map json_
Implementation
WebPage.fromJson(core.Map json_)
: this(
fullMatchingImages: json_.containsKey('fullMatchingImages')
? (json_['fullMatchingImages'] as core.List)
.map((value) => WebImage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pageTitle: json_.containsKey('pageTitle')
? json_['pageTitle'] as core.String
: null,
partialMatchingImages: json_.containsKey('partialMatchingImages')
? (json_['partialMatchingImages'] as core.List)
.map((value) => WebImage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
score: json_.containsKey('score')
? (json_['score'] as core.num).toDouble()
: null,
url: json_.containsKey('url') ? json_['url'] as core.String : null,
);