decode static method

FastEvent decode(
  1. Object message
)

Implementation

static FastEvent decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return FastEvent(
    eventType: pigeonMap['eventType'] != null
        ? FastEventType.values[pigeonMap['eventType']! as int]
        : null,
    purchaseInfo: pigeonMap['purchaseInfo'] != null
        ? PurchaseInfo.decode(pigeonMap['purchaseInfo']!)
        : null,
    error: pigeonMap['error'] as String?,
  );
}