ListDocumentVersionsResult.fromJson constructor

ListDocumentVersionsResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListDocumentVersionsResult.fromJson(Map<String, dynamic> json) {
  return ListDocumentVersionsResult(
    documentVersions: (json['DocumentVersions'] as List?)
        ?.whereNotNull()
        .map((e) => DocumentVersionInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}