python work
This commit is contained in:
@@ -856,7 +856,8 @@ class VeilidConfigProtectedStore {
|
||||
directory = json['directory'],
|
||||
delete = json['delete'],
|
||||
deviceEncryptionKeyPassword = json['device_encryption_key_password'],
|
||||
newDeviceEncryptionKeyPassword = json['new_device_encryption_key_password'];
|
||||
newDeviceEncryptionKeyPassword =
|
||||
json['new_device_encryption_key_password'];
|
||||
}
|
||||
|
||||
////////////
|
||||
|
@@ -511,16 +511,17 @@ class VeilidStateNetwork {
|
||||
/// VeilidStateConfig
|
||||
|
||||
class VeilidStateConfig {
|
||||
final Map<String, dynamic> config;
|
||||
final VeilidConfig config;
|
||||
|
||||
VeilidStateConfig({
|
||||
required this.config,
|
||||
});
|
||||
|
||||
VeilidStateConfig.fromJson(dynamic json) : config = json['config'];
|
||||
VeilidStateConfig.fromJson(dynamic json)
|
||||
: config = VeilidConfig.fromJson(json['config']);
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {'config': config};
|
||||
return {'config': config.toJson()};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user