mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-31 18:58:46 -04:00
python work
This commit is contained in:
parent
b6c39ef042
commit
cd04a8a74c
17 changed files with 7309 additions and 4 deletions
|
@ -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()};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue