TransactWriteItemsOutput.fromJson constructor
TransactWriteItemsOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TransactWriteItemsOutput.fromJson(Map<String, dynamic> json) {
return TransactWriteItemsOutput(
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())),
);
}