Alert.fromJson constructor

Alert.fromJson(
  1. Map json_
)

Implementation

Alert.fromJson(core.Map json_)
    : this(
        alertId: json_.containsKey('alertId')
            ? json_['alertId'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        customerId: json_.containsKey('customerId')
            ? json_['customerId'] as core.String
            : null,
        data: json_.containsKey('data')
            ? json_['data'] as core.Map<core.String, core.dynamic>
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        metadata: json_.containsKey('metadata')
            ? AlertMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        securityInvestigationToolLink:
            json_.containsKey('securityInvestigationToolLink')
                ? json_['securityInvestigationToolLink'] as core.String
                : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );