python work

This commit is contained in:
John Smith
2023-06-11 21:41:13 -04:00
parent b6c39ef042
commit cd04a8a74c
17 changed files with 7309 additions and 4 deletions

View File

@@ -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'];
}
////////////

View File

@@ -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()};
}
}