GoogleCloudAdvisorynotificationsV1Notification.fromJson constructor

GoogleCloudAdvisorynotificationsV1Notification.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAdvisorynotificationsV1Notification.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        messages: json_.containsKey('messages')
            ? (json_['messages'] as core.List)
                .map((value) =>
                    GoogleCloudAdvisorynotificationsV1Message.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notificationType: json_.containsKey('notificationType')
            ? json_['notificationType'] as core.String
            : null,
        subject: json_.containsKey('subject')
            ? GoogleCloudAdvisorynotificationsV1Subject.fromJson(
                json_['subject'] as core.Map<core.String, core.dynamic>)
            : null,
      );