GoogleCloudDialogflowV2Document.fromJson constructor

GoogleCloudDialogflowV2Document.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2Document.fromJson(core.Map json_)
    : this(
        contentUri: json_.containsKey('contentUri')
            ? json_['contentUri'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enableAutoReload: json_.containsKey('enableAutoReload')
            ? json_['enableAutoReload'] as core.bool
            : null,
        knowledgeTypes: json_.containsKey('knowledgeTypes')
            ? (json_['knowledgeTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        latestReloadStatus: json_.containsKey('latestReloadStatus')
            ? GoogleCloudDialogflowV2DocumentReloadStatus.fromJson(
                json_['latestReloadStatus']
                    as core.Map<core.String, core.dynamic>)
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        rawContent: json_.containsKey('rawContent')
            ? json_['rawContent'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );