GtagConfig.fromJson constructor

GtagConfig.fromJson(
  1. Map json_
)

Implementation

GtagConfig.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        containerId: json_.containsKey('containerId')
            ? json_['containerId'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        gtagConfigId: json_.containsKey('gtagConfigId')
            ? json_['gtagConfigId'] as core.String
            : null,
        parameter: json_.containsKey('parameter')
            ? (json_['parameter'] as core.List)
                .map((value) => Parameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        tagManagerUrl: json_.containsKey('tagManagerUrl')
            ? json_['tagManagerUrl'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        workspaceId: json_.containsKey('workspaceId')
            ? json_['workspaceId'] as core.String
            : null,
      );