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,
      );