serializeDbRelaySet function
Implementation
@isarProtected
int serializeDbRelaySet(IsarWriter writer, DbRelaySet object) {
IsarCore.writeString(writer, 1, object.id);
IsarCore.writeString(writer, 2, object.name);
IsarCore.writeString(writer, 3, object.pubKey);
IsarCore.writeByte(writer, 4, object.direction.index);
IsarCore.writeLong(writer, 5, object.relayMinCountPerPubkey);
{
final list = object.items;
final listWriter = IsarCore.beginList(writer, 6, list.length);
for (var i = 0; i < list.length; i++) {
{
final value = list[i];
final objectWriter = IsarCore.beginObject(listWriter, i);
serializeDbRelaySetItem(objectWriter, value);
IsarCore.endObject(listWriter, objectWriter);
}
}
IsarCore.endList(writer, listWriter);
}
return Isar.fastHash(object.id);
}