feat(app): live terminal log console widget and service dynamic settings management
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
class ServiceSettingDto {
|
||||
final String key;
|
||||
final String value;
|
||||
final String type; // 'bool', 'int', 'double', 'string'
|
||||
final String description;
|
||||
|
||||
const ServiceSettingDto({
|
||||
required this.key,
|
||||
required this.value,
|
||||
this.type = 'string',
|
||||
this.description = '',
|
||||
});
|
||||
|
||||
@@ -13,6 +15,7 @@ class ServiceSettingDto {
|
||||
return ServiceSettingDto(
|
||||
key: json['key']?.toString() ?? '',
|
||||
value: json['value']?.toString() ?? '',
|
||||
type: json['dataType']?.toString() ?? json['type']?.toString() ?? 'string',
|
||||
description: json['description']?.toString() ?? '',
|
||||
);
|
||||
}
|
||||
@@ -21,6 +24,7 @@ class ServiceSettingDto {
|
||||
return {
|
||||
'key': key,
|
||||
'value': value,
|
||||
'type': type,
|
||||
'description': description,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user