BatchPutDocumentResponse.fromJson constructor

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

Implementation

factory BatchPutDocumentResponse.fromJson(Map<String, dynamic> json) {
  return BatchPutDocumentResponse(
    failedDocuments: (json['FailedDocuments'] as List?)
        ?.whereNotNull()
        .map((e) => BatchPutDocumentResponseFailedDocument.fromJson(
            e as Map<String, dynamic>))
        .toList(),
  );
}