PlayStoreAppDetails.fromJSON constructor
PlayStoreAppDetails.fromJSON(
- Map<String, dynamic> json
)
Implementation
factory PlayStoreAppDetails.fromJSON(Map<String, dynamic> json) {
return PlayStoreAppDetails(
url: json['url'] as String,
appId: json['appId'] as String,
title: json['title'] as String?,
summary: json['summary'] as String?,
description: json['description'] as String?,
descriptionHTML: json['descriptionHTML'] as String?,
developer: json['developer'] as String?,
developerId: json['developerId'] as String?,
developerInternalId: json['developerInternalId'] as String?,
developerEmail: json['developerEmail'] as String?,
developerWebsite: json['developerWebsite'] as String?,
developerAddress: json['developerAddress'] as String?,
icon: json['icon'] as String?,
score: json['score'] as num?,
scoreText: json['scoreText'] as String?,
price: json['price'] as num?,
priceText: json['priceText'] as String?,
currency: json['currency'] as String?,
free: json['free'] as bool?,
installs: json['installs'] as String?,
minInstalls: json['minInstalls'] as num?,
maxInstalls: json['maxInstalls'] as num?,
ratings: json['ratings'] as num?,
reviews: json['reviews'] as num?,
histogram: _deserializeHistogram(json['histogram']),
available: json['available'] as bool?,
offersIAP: json['offersIAP'] as bool?,
IAPRange: json['IAPRange'] as String?,
size: json['size'] as String?,
androidVersion: json['androidVersion'] as String?,
androidVersionText: json['androidVersionText'] as String?,
genre: json['genre'] as String?,
genreId: json['genreId'] as String?,
familyGenre: json['familyGenre'] as String?,
familyGenreId: json['familyGenreId'] as String?,
headerImage: json['headerImage'] as String?,
screenshots: (json['screenshots'] as List<dynamic>?)?.cast<String>(),
video: json['video'] as String?,
videoImage: json['videoImage'] as String?,
contentRating: json['contentRating'] as String?,
contentRatingDescription: json['contentRatingDescription'] as String?,
adSupported: json['adSupported'] as bool?,
released: json['released'] as String?,
updated: json['updated'] as num?,
version: json['version'] as String,
recentChanges: json['recentChanges'] as String?,
comments: (json['comments'] as List<dynamic>?)?.cast<String>(),
privacyPolicy: json['privacyPolicy'] as String?,
);
}