added uptime monitoring
This commit is contained in:
35
lib/models/uptime_item_model.dart
Normal file
35
lib/models/uptime_item_model.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
class UptimeItemModel {
|
||||
final String id;
|
||||
final String createdAt;
|
||||
final bool deleted;
|
||||
final String name;
|
||||
final bool status;
|
||||
|
||||
const UptimeItemModel({
|
||||
required this.id,
|
||||
required this.createdAt,
|
||||
required this.deleted,
|
||||
required this.name,
|
||||
required this.status,
|
||||
});
|
||||
|
||||
factory UptimeItemModel.fromJson(Map<String, dynamic> json) {
|
||||
return UptimeItemModel(
|
||||
id: json['id'] as String,
|
||||
createdAt: json['createdAt'] as String,
|
||||
deleted: json['deleted'] as bool,
|
||||
name: json['name'] as String,
|
||||
status: json['status'] as bool,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'id': id,
|
||||
'createdAt': createdAt,
|
||||
'deleted': deleted,
|
||||
'name': name,
|
||||
'status': status,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user