ReplicaDescription.fromJson constructor

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

Implementation

factory ReplicaDescription.fromJson(Map<String, dynamic> json) {
  return ReplicaDescription(
    globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?)
        ?.whereNotNull()
        .map((e) => ReplicaGlobalSecondaryIndexDescription.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    kMSMasterKeyId: json['KMSMasterKeyId'] as String?,
    provisionedThroughputOverride:
        json['ProvisionedThroughputOverride'] != null
            ? ProvisionedThroughputOverride.fromJson(
                json['ProvisionedThroughputOverride'] as Map<String, dynamic>)
            : null,
    regionName: json['RegionName'] as String?,
    replicaInaccessibleDateTime:
        timeStampFromJson(json['ReplicaInaccessibleDateTime']),
    replicaStatus: (json['ReplicaStatus'] as String?)?.toReplicaStatus(),
    replicaStatusDescription: json['ReplicaStatusDescription'] as String?,
    replicaStatusPercentProgress:
        json['ReplicaStatusPercentProgress'] as String?,
  );
}