CompleteQueryResponse.fromJson constructor

CompleteQueryResponse.fromJson(
  1. Map json_
)

Implementation

CompleteQueryResponse.fromJson(core.Map json_)
    : this(
        completionResults: json_.containsKey('completionResults')
            ? (json_['completionResults'] as core.List)
                .map((value) => CompletionResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metadata: json_.containsKey('metadata')
            ? ResponseMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
      );