fromInterface static method

ReachFiveKey fromInterface(
  1. ReachFiveKeyInterface reachFiveKeyInterface
)

convert a ReachFiveKeyInterface to a ReachFiveKey

Implementation

static ReachFiveKey fromInterface(
  ReachFiveKeyInterface reachFiveKeyInterface,
) =>
    ReachFiveKey(
      sdkConfig:
          SdkConfigConverter.fromInterface(reachFiveKeyInterface.sdkConfig),
      providerCreators: reachFiveKeyInterface.providerCreators
          .whereType<ProviderCreatorInterface>()
          .map(ProviderCreatorConverter.fromInterface)
          .toList(),
    );