BatchWriteItemOutput.fromJson constructor
BatchWriteItemOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BatchWriteItemOutput.fromJson(Map<String, dynamic> json) {
return BatchWriteItemOutput(
consumedCapacity: (json['ConsumedCapacity'] as List?)
?.whereNotNull()
.map((e) => ConsumedCapacity.fromJson(e as Map<String, dynamic>))
.toList(),
itemCollectionMetrics: (json['ItemCollectionMetrics']
as Map<String, dynamic>?)
?.map((k, e) => MapEntry(
k,
(e as List)
.whereNotNull()
.map((e) =>
ItemCollectionMetrics.fromJson(e as Map<String, dynamic>))
.toList())),
unprocessedItems: (json['UnprocessedItems'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(
k,
(e as List)
.whereNotNull()
.map((e) => WriteRequest.fromJson(e as Map<String, dynamic>))
.toList())),
);
}