Trigger.fromJson constructor

Trigger.fromJson(
  1. Map json_
)

Implementation

Trigger.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        autoEventFilter: json_.containsKey('autoEventFilter')
            ? (json_['autoEventFilter'] as core.List)
                .map((value) => Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        checkValidation: json_.containsKey('checkValidation')
            ? Parameter.fromJson(json_['checkValidation']
                as core.Map<core.String, core.dynamic>)
            : null,
        containerId: json_.containsKey('containerId')
            ? json_['containerId'] as core.String
            : null,
        continuousTimeMinMilliseconds:
            json_.containsKey('continuousTimeMinMilliseconds')
                ? Parameter.fromJson(json_['continuousTimeMinMilliseconds']
                    as core.Map<core.String, core.dynamic>)
                : null,
        customEventFilter: json_.containsKey('customEventFilter')
            ? (json_['customEventFilter'] as core.List)
                .map((value) => Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        eventName: json_.containsKey('eventName')
            ? Parameter.fromJson(
                json_['eventName'] as core.Map<core.String, core.dynamic>)
            : null,
        filter: json_.containsKey('filter')
            ? (json_['filter'] as core.List)
                .map((value) => Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        horizontalScrollPercentageList:
            json_.containsKey('horizontalScrollPercentageList')
                ? Parameter.fromJson(json_['horizontalScrollPercentageList']
                    as core.Map<core.String, core.dynamic>)
                : null,
        interval: json_.containsKey('interval')
            ? Parameter.fromJson(
                json_['interval'] as core.Map<core.String, core.dynamic>)
            : null,
        intervalSeconds: json_.containsKey('intervalSeconds')
            ? Parameter.fromJson(json_['intervalSeconds']
                as core.Map<core.String, core.dynamic>)
            : null,
        limit: json_.containsKey('limit')
            ? Parameter.fromJson(
                json_['limit'] as core.Map<core.String, core.dynamic>)
            : null,
        maxTimerLengthSeconds: json_.containsKey('maxTimerLengthSeconds')
            ? Parameter.fromJson(json_['maxTimerLengthSeconds']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notes:
            json_.containsKey('notes') ? json_['notes'] 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,
        parentFolderId: json_.containsKey('parentFolderId')
            ? json_['parentFolderId'] as core.String
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        selector: json_.containsKey('selector')
            ? Parameter.fromJson(
                json_['selector'] as core.Map<core.String, core.dynamic>)
            : null,
        tagManagerUrl: json_.containsKey('tagManagerUrl')
            ? json_['tagManagerUrl'] as core.String
            : null,
        totalTimeMinMilliseconds:
            json_.containsKey('totalTimeMinMilliseconds')
                ? Parameter.fromJson(json_['totalTimeMinMilliseconds']
                    as core.Map<core.String, core.dynamic>)
                : null,
        triggerId: json_.containsKey('triggerId')
            ? json_['triggerId'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        uniqueTriggerId: json_.containsKey('uniqueTriggerId')
            ? Parameter.fromJson(json_['uniqueTriggerId']
                as core.Map<core.String, core.dynamic>)
            : null,
        verticalScrollPercentageList:
            json_.containsKey('verticalScrollPercentageList')
                ? Parameter.fromJson(json_['verticalScrollPercentageList']
                    as core.Map<core.String, core.dynamic>)
                : null,
        visibilitySelector: json_.containsKey('visibilitySelector')
            ? Parameter.fromJson(json_['visibilitySelector']
                as core.Map<core.String, core.dynamic>)
            : null,
        visiblePercentageMax: json_.containsKey('visiblePercentageMax')
            ? Parameter.fromJson(json_['visiblePercentageMax']
                as core.Map<core.String, core.dynamic>)
            : null,
        visiblePercentageMin: json_.containsKey('visiblePercentageMin')
            ? Parameter.fromJson(json_['visiblePercentageMin']
                as core.Map<core.String, core.dynamic>)
            : null,
        waitForTags: json_.containsKey('waitForTags')
            ? Parameter.fromJson(
                json_['waitForTags'] as core.Map<core.String, core.dynamic>)
            : null,
        waitForTagsTimeout: json_.containsKey('waitForTagsTimeout')
            ? Parameter.fromJson(json_['waitForTagsTimeout']
                as core.Map<core.String, core.dynamic>)
            : null,
        workspaceId: json_.containsKey('workspaceId')
            ? json_['workspaceId'] as core.String
            : null,
      );