AttributionSettings.fromJson constructor

AttributionSettings.fromJson(
  1. Map json_
)

Implementation

AttributionSettings.fromJson(core.Map json_)
    : this(
        attributionLookbackWindowInDays:
            json_.containsKey('attributionLookbackWindowInDays')
                ? json_['attributionLookbackWindowInDays'] as core.int
                : null,
        attributionModel: json_.containsKey('attributionModel')
            ? json_['attributionModel'] as core.String
            : null,
        conversionType: json_.containsKey('conversionType')
            ? (json_['conversionType'] as core.List)
                .map((value) => AttributionSettingsConversionType.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );