Fix parsing .yml files to nodes (#543)

This commit is contained in:
Omar Hatem 2022-10-20 00:23:53 +02:00 committed by GitHub
parent 3c4ba6da53
commit e011ab3e88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View file

@ -29,10 +29,9 @@ class Node extends HiveObject with Keyable {
Node.fromMap(Map<String, Object?> map)
: uriRaw = map['uri'] as String? ?? '',
login = map['login'] as String,
password = map['password'] as String,
typeRaw = map['typeRaw'] as int,
useSSL = map['useSSL'] as bool;
login = map['login'] as String?,
password = map['password'] as String?,
useSSL = map['useSSL'] as bool?;
static const typeId = 1;
static const boxName = 'Nodes';