serializeDbRelaySetItem function

  1. @isarProtected
int serializeDbRelaySetItem(
  1. IsarWriter writer,
  2. DbRelaySetItem object
)

Implementation

@isarProtected
int serializeDbRelaySetItem(IsarWriter writer, DbRelaySetItem object) {
  IsarCore.writeString(writer, 1, object.url);
  {
    final list = object.pubKeyMappings;
    final listWriter = IsarCore.beginList(writer, 2, list.length);
    for (var i = 0; i < list.length; i++) {
      {
        final value = list[i];
        final objectWriter = IsarCore.beginObject(listWriter, i);
        serializeDbPubkeyMapping(objectWriter, value);
        IsarCore.endObject(listWriter, objectWriter);
      }
    }
    IsarCore.endList(writer, listWriter);
  }
  return 0;
}