PeekanappAllResponseData.fromJSON constructor
PeekanappAllResponseData.fromJSON(
- Map<String, dynamic> json
)
Implementation
factory PeekanappAllResponseData.fromJSON(Map<String, dynamic> json) {
final playStoreAppDetails = json['playstore'] != null
? PlayStoreAppDetails.fromJSON(json['playstore'])
: null;
final appStoreAppDetails = json['appstore'] != null
? AppStoreAppDetails.fromJSON(json['appstore'])
: null;
final errors = (json['errors'] as List<dynamic>)
.map((e) => PeekanappError.fromJSON(e as Map<String, dynamic>))
.toList();
return PeekanappAllResponseData(
playStoreAppDetails: playStoreAppDetails,
appStoreAppDetails: appStoreAppDetails,
errors: errors,
);
}