ListDocumentsResponse.fromJson constructor

ListDocumentsResponse.fromJson(
  1. Map _json
)

Implementation

ListDocumentsResponse.fromJson(core.Map _json) {
  if (_json.containsKey("documents")) {
    documents = (_json["documents"] as core.List)
        .map<Document>((value) => new Document.fromJson(value))
        .toList();
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
}