CloudConfig.withMap constructor

CloudConfig.withMap(
  1. Map<String, dynamic> params
)

Implementation

CloudConfig.withMap(Map<String, dynamic> params) {
  cloudName = params[cloudNameKey].toString();
  apiKey = params[apiKeyKey]?.toString();
  apiSecret = params[apiSecretKey]?.toString();
  signatureAlgorithm =
      params[signatureAlgorithmKey]?.toString() ?? defaultSignatureAlgorithm;
  if (params[authTokenKey] != null) {
    authToken = AuthToken.fromMap(params[authTokenKey]);
  }
}