NativeSetupWalletWidget.fromJson constructor

NativeSetupWalletWidget.fromJson(
  1. NativeWidgetParams context
)

Implementation

factory NativeSetupWalletWidget.fromJson(NativeWidgetParams context) {
  final params = context.params;
  return NativeSetupWalletWidget(
    params: NativeSetupWalletCardParams.create()..mergeFromProto3Json(params),
    onPayLessInfoPressed: context.getEventHandler('onPayLessInfoPressed'),
    onRewardsInfoPressed: context.getEventHandler('onRewardsInfoPressed'),
  );
}