fromJson method

  1. @override
PurchasesErrorCode fromJson(
  1. int json
)

Implementation

@override
PurchasesErrorCode fromJson(int json) {
  if (json >= PurchasesErrorCode.values.length) {
    return PurchasesErrorCode.unknownError;
  }
  return PurchasesErrorCode.values[json];
}