DescribeDocumentVersionsResponse.fromJson constructor

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

Implementation

factory DescribeDocumentVersionsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeDocumentVersionsResponse(
    documentVersions: (json['DocumentVersions'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DocumentVersionMetadata.fromJson(e as Map<String, dynamic>))
        .toList(),
    marker: json['Marker'] as String?,
  );
}