Key.fromJson constructor

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

Implementation

factory Key.fromJson(Map<String, dynamic> json) {
  return Key(
    hashKeyElement: AttributeValue.fromJson(
        json['HashKeyElement'] as Map<String, dynamic>),
    rangeKeyElement: json['RangeKeyElement'] != null
        ? AttributeValue.fromJson(
            json['RangeKeyElement'] as Map<String, dynamic>)
        : null,
  );
}