toInterface static method

LyraInitializeOptionsInterface toInterface(
  1. LyraInitializeOptions lyraInitializeOptions
)

convert a LyraInitializeOptions to a LyraInitializeOptionsInterface

Implementation

static LyraInitializeOptionsInterface toInterface(
  LyraInitializeOptions lyraInitializeOptions,
) =>
    LyraInitializeOptionsInterface(
      apiServerName: lyraInitializeOptions.apiServerName,
      cardScanningEnabled: lyraInitializeOptions.cardScanningEnabled,
      nfcEnabled: lyraInitializeOptions.nfcEnabled,
      applePayMerchantId: defaultTargetPlatform == TargetPlatform.iOS
          ? lyraInitializeOptions.applePayMerchantId
          : null,
      applePayMerchantName: defaultTargetPlatform == TargetPlatform.iOS
          ? lyraInitializeOptions.applePayMerchantName
          : null,
    );