getServicePayload function

ServiceCredentialPayload? getServicePayload(
  1. OAuthService service
)

Implementation

ServiceCredentialPayload? getServicePayload(OAuthService service) {
  if (service == OAuthService.google) {
    return getGoogleServicePayload();
  } else if (service == OAuthService.microsoft) {
    return getMicrosoftServicePayload();
  } else if (service == OAuthService.yahoo) {
    return getYahooServicePayload();
  }
  return null;
}