mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 14:19:16 +00:00
42 lines
927 B
Dart
42 lines
927 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'server_disk_volume.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class ServerDiskVolume extends Equatable {
|
|
factory ServerDiskVolume.fromJson(final Map<String, dynamic> json) =>
|
|
_$ServerDiskVolumeFromJson(json);
|
|
const ServerDiskVolume({
|
|
required this.freeSpace,
|
|
required this.model,
|
|
required this.name,
|
|
required this.root,
|
|
required this.serial,
|
|
required this.totalSpace,
|
|
required this.type,
|
|
required this.usedSpace,
|
|
});
|
|
|
|
final String freeSpace;
|
|
final String? model;
|
|
final String name;
|
|
final bool root;
|
|
final String? serial;
|
|
final String totalSpace;
|
|
final String type;
|
|
final String usedSpace;
|
|
|
|
@override
|
|
List<Object?> get props => [
|
|
freeSpace,
|
|
model,
|
|
name,
|
|
root,
|
|
serial,
|
|
totalSpace,
|
|
type,
|
|
usedSpace,
|
|
];
|
|
}
|