SourceTableDetails.fromJson constructor

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

Implementation

factory SourceTableDetails.fromJson(Map<String, dynamic> json) {
  return SourceTableDetails(
    keySchema: (json['KeySchema'] as List)
        .whereNotNull()
        .map((e) => KeySchemaElement.fromJson(e as Map<String, dynamic>))
        .toList(),
    provisionedThroughput: ProvisionedThroughput.fromJson(
        json['ProvisionedThroughput'] as Map<String, dynamic>),
    tableCreationDateTime:
        nonNullableTimeStampFromJson(json['TableCreationDateTime'] as Object),
    tableId: json['TableId'] as String,
    tableName: json['TableName'] as String,
    billingMode: (json['BillingMode'] as String?)?.toBillingMode(),
    itemCount: json['ItemCount'] as int?,
    tableArn: json['TableArn'] as String?,
    tableSizeBytes: json['TableSizeBytes'] as int?,
  );
}