Add description_name
to clients
This commit is contained in:
@@ -31,4 +31,5 @@
|
||||
- [ ] Single struct for model/db/json
|
||||
- [ ] use sq.Query | sq.Update | sq.InsertAndQuery | ....
|
||||
- [ ] sq.DBOptions - enable CommentTrimmer and DefaultConverter
|
||||
- [ ] run unit-tests...
|
||||
- [ ] run unit-tests...
|
||||
- [ ] Copy db.Migrate code
|
@@ -6,6 +6,7 @@ class Client {
|
||||
final String timestampCreated;
|
||||
final String agentModel;
|
||||
final String agentVersion;
|
||||
final String? descriptionName;
|
||||
|
||||
const Client({
|
||||
required this.clientID,
|
||||
@@ -15,6 +16,7 @@ class Client {
|
||||
required this.timestampCreated,
|
||||
required this.agentModel,
|
||||
required this.agentVersion,
|
||||
required this.descriptionName,
|
||||
});
|
||||
|
||||
factory Client.fromJson(Map<String, dynamic> json) {
|
||||
@@ -26,6 +28,7 @@ class Client {
|
||||
timestampCreated: json['timestamp_created'] as String,
|
||||
agentModel: json['agent_model'] as String,
|
||||
agentVersion: json['agent_version'] as String,
|
||||
descriptionName: json['description_name'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user