getBaseUrl function

dynamic getBaseUrl(
  1. String sdkType
)

Implementation

getBaseUrl(String sdkType) {
  if (sdkType == SPEnvironmentType.sandbox) {
    return SPBaseURL.sandbox;
  } else if (sdkType == SPEnvironmentType.live) {
    return SPBaseURL.live;
  } else if (sdkType == SPEnvironmentType.ipnSandbox) {
    return SPBaseURL.ipnSandbox;
  } else if (sdkType == SPEnvironmentType.ipnLive) {
    return SPBaseURL.ipnLive;
  }
  return null;
}