PixabayImage.fromJson constructor
PixabayImage.fromJson(
- Map<String, dynamic> data
)
Implementation
factory PixabayImage.fromJson(Map<String, dynamic> data) {
return new PixabayImage(
largeImageURL: data['largeImageURL'],
fullHDURL: data['fullHDURL'],
webformatHeight: data['webformatHeight'],
webformatWidth: data['webformatWidth'],
likes: data['likes'],
imageWidth: data['imageWidth'],
type: data['type'],
id: data['id'],
userId: data['user_id'],
views: data['views'],
comments: data['comments'],
pageURL: data['pageURL'],
imageHeight: data['imageHeight'],
webformatURL: data['webformatURL'],
previewHeight: data['previewHeight'],
tags: data['tags'],
downloads: data['downloads'],
user: data['user'],
favorites: data['favorites'],
imageSize: data['imageSize'],
previewWidth: data['previewWidth'],
userImageURL: data['userImageURL'],
previewURL: data['previewURL'],
);
}