ApphudProductComposite.fromJson constructor
ApphudProductComposite.fromJson(
- Map json
Implementation
factory ApphudProductComposite.fromJson(Map<dynamic, dynamic> json) {
if (Platform.isAndroid) {
final ProductDetailsWrapper productDetailsWrapper =
ProductDetailsWrapper.fromJson(json);
return ApphudProductComposite(
productDetailsWrapper: productDetailsWrapper);
} else {
final SKProductWrapper skProductWrapper = SKProductWrapper.fromJson(json);
return ApphudProductComposite(skProductWrapper: skProductWrapper);
}
}