PathToConversionReportCompatibleFields.fromJson constructor

PathToConversionReportCompatibleFields.fromJson(
  1. Map json_
)

Implementation

PathToConversionReportCompatibleFields.fromJson(core.Map json_)
    : this(
        conversionDimensions: json_.containsKey('conversionDimensions')
            ? (json_['conversionDimensions'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        customFloodlightVariables:
            json_.containsKey('customFloodlightVariables')
                ? (json_['customFloodlightVariables'] as core.List)
                    .map((value) => Dimension.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        perInteractionDimensions:
            json_.containsKey('perInteractionDimensions')
                ? (json_['perInteractionDimensions'] as core.List)
                    .map((value) => Dimension.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );