GetItemOutput.fromJson constructor

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

Implementation

factory GetItemOutput.fromJson(Map<String, dynamic> json) {
  return GetItemOutput(
    consumedCapacity: json['ConsumedCapacity'] != null
        ? ConsumedCapacity.fromJson(
            json['ConsumedCapacity'] as Map<String, dynamic>)
        : null,
    item: (json['Item'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k, AttributeValue.fromJson(e as Map<String, dynamic>))),
  );
}