AwsDynamoDbTableReplica.fromJson constructor

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

Implementation

factory AwsDynamoDbTableReplica.fromJson(Map<String, dynamic> json) {
  return AwsDynamoDbTableReplica(
    globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?)
        ?.whereNotNull()
        .map((e) => AwsDynamoDbTableReplicaGlobalSecondaryIndex.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    kmsMasterKeyId: json['KmsMasterKeyId'] as String?,
    provisionedThroughputOverride:
        json['ProvisionedThroughputOverride'] != null
            ? AwsDynamoDbTableProvisionedThroughputOverride.fromJson(
                json['ProvisionedThroughputOverride'] as Map<String, dynamic>)
            : null,
    regionName: json['RegionName'] as String?,
    replicaStatus: json['ReplicaStatus'] as String?,
    replicaStatusDescription: json['ReplicaStatusDescription'] as String?,
  );
}