PurchasesError.fromJson constructor

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

Implementation

factory PurchasesError.fromJson(Map<String, dynamic> json) => PurchasesError(
  _purchasesErrorCodeFromJson((json['code'] as num).round()),
  json['message'] as String,
  json['underlyingErrorMessage'] as String,
  json['readableErrorCode'] as String? ?? '',
);