ScanOutput.fromJson constructor
ScanOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScanOutput.fromJson(Map<String, dynamic> json) {
return ScanOutput(
consumedCapacity: json['ConsumedCapacity'] != null
? ConsumedCapacity.fromJson(
json['ConsumedCapacity'] as Map<String, dynamic>)
: null,
count: json['Count'] as int?,
items: (json['Items'] as List?)
?.whereNotNull()
.map((e) => (e as Map<String, dynamic>).map((k, e) =>
MapEntry(k, AttributeValue.fromJson(e as Map<String, dynamic>))))
.toList(),
lastEvaluatedKey: (json['LastEvaluatedKey'] as Map<String, dynamic>?)
?.map((k, e) =>
MapEntry(k, AttributeValue.fromJson(e as Map<String, dynamic>))),
scannedCount: json['ScannedCount'] as int?,
);
}