BackupDetails.fromJson constructor

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

Implementation

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