ImageInfo.fromJson constructor
Constructs an ImageInfo instance from a JSON map.
The json
parameter is a map containing the image URLs.
Implementation
ImageInfo.fromJson(Map<String, dynamic> json)
: this.thumb = Convert.toStrN(json['thumb']),
this.small = Convert.toStrN(json['small']),
this.large = Convert.toStrN(json['large']);