VerifyPurchaseResult.fromJson constructor
Implementation
factory VerifyPurchaseResult.fromJson(Map<String, dynamic> json) {
final typeName = json['__typename'] as String?;
switch (typeName) {
case 'VerifyPurchaseResultAndroid':
return VerifyPurchaseResultAndroid.fromJson(json);
case 'VerifyPurchaseResultIOS':
return VerifyPurchaseResultIOS.fromJson(json);
}
throw ArgumentError('Unknown __typename for VerifyPurchaseResult: $typeName');
}