KeySchema.fromJson constructor

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

Implementation

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