encode method
Implementation
Object encode() {
final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
pigeonMap['eventType'] = eventType == null ? null : eventType!.index;
pigeonMap['purchaseInfo'] = purchaseInfo == null ? null : purchaseInfo!.encode();
pigeonMap['error'] = error;
return pigeonMap;
}