2024-02-01 14:30:06 +00:00
|
|
|
import 'package:equatable/equatable.dart';
|
2022-07-29 05:38:21 +00:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'server_disk_volume.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
2024-02-01 14:30:06 +00:00
|
|
|
class ServerDiskVolume extends Equatable {
|
2022-07-29 05:38:21 +00:00
|
|
|
factory ServerDiskVolume.fromJson(final Map<String, dynamic> json) =>
|
|
|
|
_$ServerDiskVolumeFromJson(json);
|
2024-02-01 14:30:06 +00:00
|
|
|
const ServerDiskVolume({
|
2022-07-29 05:38:21 +00:00
|
|
|
required this.freeSpace,
|
2022-07-31 23:10:37 +00:00
|
|
|
required this.model,
|
2022-07-29 05:38:21 +00:00
|
|
|
required this.name,
|
|
|
|
required this.root,
|
2022-07-31 23:10:37 +00:00
|
|
|
required this.serial,
|
2022-07-29 05:38:21 +00:00
|
|
|
required this.totalSpace,
|
2022-07-31 23:10:37 +00:00
|
|
|
required this.type,
|
2022-07-29 05:38:21 +00:00
|
|
|
required this.usedSpace,
|
|
|
|
});
|
|
|
|
|
|
|
|
final String freeSpace;
|
2022-07-31 23:10:37 +00:00
|
|
|
final String? model;
|
2022-07-29 05:38:21 +00:00
|
|
|
final String name;
|
|
|
|
final bool root;
|
2022-07-31 23:10:37 +00:00
|
|
|
final String? serial;
|
2022-07-29 05:38:21 +00:00
|
|
|
final String totalSpace;
|
2022-07-31 23:10:37 +00:00
|
|
|
final String type;
|
2022-07-29 05:38:21 +00:00
|
|
|
final String usedSpace;
|
2024-02-01 14:30:06 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object?> get props => [
|
|
|
|
freeSpace,
|
|
|
|
model,
|
|
|
|
name,
|
|
|
|
root,
|
|
|
|
serial,
|
|
|
|
totalSpace,
|
|
|
|
type,
|
|
|
|
usedSpace,
|
|
|
|
];
|
2022-07-29 05:38:21 +00:00
|
|
|
}
|