BackupSummary.fromJson constructor

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

Implementation

factory BackupSummary.fromJson(Map<String, dynamic> json) {
  return BackupSummary(
    backupArn: json['BackupArn'] as String?,
    backupCreationDateTime: timeStampFromJson(json['BackupCreationDateTime']),
    backupExpiryDateTime: timeStampFromJson(json['BackupExpiryDateTime']),
    backupName: json['BackupName'] as String?,
    backupSizeBytes: json['BackupSizeBytes'] as int?,
    backupStatus: (json['BackupStatus'] as String?)?.toBackupStatus(),
    backupType: (json['BackupType'] as String?)?.toBackupType(),
    tableArn: json['TableArn'] as String?,
    tableId: json['TableId'] as String?,
    tableName: json['TableName'] as String?,
  );
}