decode static method

PurchasesResponse decode(
  1. Object result
)

Implementation

static PurchasesResponse decode(Object result) {
  result as List<Object?>;
  return PurchasesResponse(
    code: result[0]! as int,
    errorMessage: result[1] as String?,
    errorDescription: result[2] as String?,
    traceId: result[3] as String?,
    purchases: (result[4] as List<Object?>?)!.cast<Purchase?>(),
    errors: (result[5] as List<Object?>?)!.cast<DigitalShopGeneralError?>(),
  );
}