deserializeDbNip05 function
DbNip05
deserializeDbNip05(
- IsarReader reader
)
Implementation
@isarProtected
DbNip05 deserializeDbNip05(IsarReader reader) {
final String _pubKey;
_pubKey = IsarCore.readString(reader, 2) ?? '';
final String _nip05;
_nip05 = IsarCore.readString(reader, 3) ?? '';
final bool _valid;
_valid = IsarCore.readBool(reader, 4);
final int? _networkFetchTime;
{
final value = IsarCore.readLong(reader, 5);
if (value == -9223372036854775808) {
_networkFetchTime = null;
} else {
_networkFetchTime = value;
}
}
final object = DbNip05(
pubKey: _pubKey,
nip05: _nip05,
valid: _valid,
networkFetchTime: _networkFetchTime,
);
{
final length = IsarCore.readList(reader, 6, IsarCore.readerPtrPtr);
{
final reader = IsarCore.readerPtr;
if (reader.isNull) {
object.relays = null;
} else {
final list = List<String>.filled(length, '', growable: true);
for (var i = 0; i < length; i++) {
list[i] = IsarCore.readString(reader, i) ?? '';
}
IsarCore.freeReader(reader);
object.relays = list;
}
}
}
return object;
}