selfprivacy.org.app/lib/logic/models/server_metadata.dart
NaiJi 10bdd4c800 refactor(server-api): Make general server info polymorphic
Removing Hetzner type hardcode from server page and replacing it with generic String-based metadata container
2022-11-11 07:32:01 +04:00

22 lines
300 B
Dart

enum MetadataType {
id,
status,
cpu,
ram,
cost,
location,
other,
}
class ServerMetadataEntity {
ServerMetadataEntity({
required this.name,
required this.value,
this.type = MetadataType.other,
});
final MetadataType type;
final String name;
final String value;
}