TableAutoScalingDescription.fromJson constructor

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

Implementation

factory TableAutoScalingDescription.fromJson(Map<String, dynamic> json) {
  return TableAutoScalingDescription(
    replicas: (json['Replicas'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ReplicaAutoScalingDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
    tableName: json['TableName'] as String?,
    tableStatus: (json['TableStatus'] as String?)?.toTableStatus(),
  );
}