toMap method
Converts the HyperSnapSDKConfig object to a Map.
Implementation
Map<String, dynamic> toMap() {
return {
HyperSnapSDKConstants.shouldEnableSSLPinning: shouldEnableSSLPinning,
HyperSnapSDKConstants.shouldUseSignature: shouldUseSignature,
HyperSnapSDKConstants.shouldReturnRawResponse: shouldReturnRawResponse,
HyperSnapSDKConstants.connectTimeout: timeoutConfig?.connectTimeout,
HyperSnapSDKConstants.readTimeout: timeoutConfig?.readTimeout,
HyperSnapSDKConstants.writeTimeout: timeoutConfig?.writeTimeout,
HyperSnapSDKConstants.uiConfigMap: hvUIConfig?.toJSONString(),
};
}