ActivityRule.fromJson constructor

ActivityRule.fromJson(
  1. Map _json
)

Implementation

ActivityRule.fromJson(core.Map _json)
    : this(
        actionNames: _json.containsKey('actionNames')
            ? (_json['actionNames'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        query:
            _json.containsKey('query') ? _json['query'] as core.String : null,
        supersededAlerts: _json.containsKey('supersededAlerts')
            ? (_json['supersededAlerts'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        supersedingAlert: _json.containsKey('supersedingAlert')
            ? _json['supersedingAlert'] as core.String
            : null,
        threshold: _json.containsKey('threshold')
            ? _json['threshold'] as core.String
            : null,
        triggerSource: _json.containsKey('triggerSource')
            ? _json['triggerSource'] as core.String
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
        windowSize: _json.containsKey('windowSize')
            ? _json['windowSize'] as core.String
            : null,
      );