ListDocumentsResponse.fromJson constructor

ListDocumentsResponse.fromJson(
  1. Map json_
)

Implementation

ListDocumentsResponse.fromJson(core.Map json_)
    : this(
        documents: json_.containsKey('documents')
            ? (json_['documents'] as core.List)
                .map((value) => Document.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );