TableDescription.fromJson constructor

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

Implementation

factory TableDescription.fromJson(Map<String, dynamic> json) {
  return TableDescription(
    creationDateTime: timeStampFromJson(json['CreationDateTime']),
    itemCount: json['ItemCount'] as int?,
    keySchema: json['KeySchema'] != null
        ? KeySchema.fromJson(json['KeySchema'] as Map<String, dynamic>)
        : null,
    provisionedThroughput: json['ProvisionedThroughput'] != null
        ? ProvisionedThroughputDescription.fromJson(
            json['ProvisionedThroughput'] as Map<String, dynamic>)
        : null,
    tableName: json['TableName'] as String?,
    tableSizeBytes: json['TableSizeBytes'] as int?,
    tableStatus: (json['TableStatus'] as String?)?.toTableStatus(),
  );
}