AwsDynamoDbTableDetails.fromJson constructor
AwsDynamoDbTableDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsDynamoDbTableDetails.fromJson(Map<String, dynamic> json) {
return AwsDynamoDbTableDetails(
attributeDefinitions: (json['AttributeDefinitions'] as List?)
?.whereNotNull()
.map((e) => AwsDynamoDbTableAttributeDefinition.fromJson(
e as Map<String, dynamic>))
.toList(),
billingModeSummary: json['BillingModeSummary'] != null
? AwsDynamoDbTableBillingModeSummary.fromJson(
json['BillingModeSummary'] as Map<String, dynamic>)
: null,
creationDateTime: json['CreationDateTime'] as String?,
globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?)
?.whereNotNull()
.map((e) => AwsDynamoDbTableGlobalSecondaryIndex.fromJson(
e as Map<String, dynamic>))
.toList(),
globalTableVersion: json['GlobalTableVersion'] as String?,
itemCount: json['ItemCount'] as int?,
keySchema: (json['KeySchema'] as List?)
?.whereNotNull()
.map((e) =>
AwsDynamoDbTableKeySchema.fromJson(e as Map<String, dynamic>))
.toList(),
latestStreamArn: json['LatestStreamArn'] as String?,
latestStreamLabel: json['LatestStreamLabel'] as String?,
localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?)
?.whereNotNull()
.map((e) => AwsDynamoDbTableLocalSecondaryIndex.fromJson(
e as Map<String, dynamic>))
.toList(),
provisionedThroughput: json['ProvisionedThroughput'] != null
? AwsDynamoDbTableProvisionedThroughput.fromJson(
json['ProvisionedThroughput'] as Map<String, dynamic>)
: null,
replicas: (json['Replicas'] as List?)
?.whereNotNull()
.map((e) =>
AwsDynamoDbTableReplica.fromJson(e as Map<String, dynamic>))
.toList(),
restoreSummary: json['RestoreSummary'] != null
? AwsDynamoDbTableRestoreSummary.fromJson(
json['RestoreSummary'] as Map<String, dynamic>)
: null,
sseDescription: json['SseDescription'] != null
? AwsDynamoDbTableSseDescription.fromJson(
json['SseDescription'] as Map<String, dynamic>)
: null,
streamSpecification: json['StreamSpecification'] != null
? AwsDynamoDbTableStreamSpecification.fromJson(
json['StreamSpecification'] as Map<String, dynamic>)
: null,
tableId: json['TableId'] as String?,
tableName: json['TableName'] as String?,
tableSizeBytes: json['TableSizeBytes'] as int?,
tableStatus: json['TableStatus'] as String?,
);
}