MerchantConfig.fromJson constructor

MerchantConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MerchantConfig.fromJson(Map<String, dynamic> json) {
  return MerchantConfig(
    id: json['id'],
    merchantId: json['merchantId'],
    name: json['name'],
    host: json['host'],
    platform: json['platform'],
    kwikpassEnabled: json['kwikpassEnabled'],
    isWhatsappOtpLessActive: json['isWhatsappOtpLessActive'],
    isTruecallerActive: json['isTruecallerActive'],
    integrationType: json['integrationType'],
    isLogoutBtnDisabled: json['isLogoutBtnDisabled'],
    popupBreakpoint: json['popupBreakpoint'],
    apiKey: json['apiKey'] ?? "",
    isPublicAppInstalled: json['isPublicAppInstalled'],
    thirdPartyServiceProviders: (json['thirdPartyServiceProviders'] as List)
        .map((e) => ThirdPartyServiceProvider.fromJson(e))
        .toList(),
    kpRequestId: json['kpRequestId'],
    customerIntelligenceEnabled: json['customerIntelligenceEnabled'],
    customerIntelligenceMetrics: json['customerIntelligenceMetrics'],
    marketingPopupGlobalLimit: json['marketingPopupGlobalLimit'],
    customerAccountsVersion: json['customerAccountsVersion'],
  );
}