GoogleCloudDialogflowCxV3ValidationMessage.fromJson constructor

GoogleCloudDialogflowCxV3ValidationMessage.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3ValidationMessage.fromJson(core.Map json_)
    : this(
        detail: json_.containsKey('detail')
            ? json_['detail'] as core.String
            : null,
        resourceNames: json_.containsKey('resourceNames')
            ? (json_['resourceNames'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3ResourceName.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
        resources: json_.containsKey('resources')
            ? (json_['resources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
      );