VerifyPurchaseProps.fromJson constructor

VerifyPurchaseProps.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory VerifyPurchaseProps.fromJson(Map<String, dynamic> json) {
  return VerifyPurchaseProps(
    apple: json['apple'] != null ? VerifyPurchaseAppleOptions.fromJson(json['apple'] as Map<String, dynamic>) : null,
    google: json['google'] != null ? VerifyPurchaseGoogleOptions.fromJson(json['google'] as Map<String, dynamic>) : null,
    horizon: json['horizon'] != null ? VerifyPurchaseHorizonOptions.fromJson(json['horizon'] as Map<String, dynamic>) : null,
  );
}