AlertMetadata.fromJson constructor

AlertMetadata.fromJson(
  1. Map _json
)

Implementation

AlertMetadata.fromJson(core.Map _json)
    : this(
        alertId: _json.containsKey('alertId')
            ? _json['alertId'] as core.String
            : null,
        assignee: _json.containsKey('assignee')
            ? _json['assignee'] as core.String
            : null,
        customerId: _json.containsKey('customerId')
            ? _json['customerId'] as core.String
            : null,
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        severity: _json.containsKey('severity')
            ? _json['severity'] as core.String
            : null,
        status: _json.containsKey('status')
            ? _json['status'] as core.String
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );