deserializeDbMetadata function
DbMetadata
deserializeDbMetadata(
- IsarReader reader
)
Implementation
@isarProtected
DbMetadata deserializeDbMetadata(IsarReader reader) {
final String _pubKey;
_pubKey = IsarCore.readString(reader, 4) ?? "";
final String? _name;
_name = IsarCore.readString(reader, 5);
final String? _displayName;
_displayName = IsarCore.readString(reader, 6);
final String? _picture;
_picture = IsarCore.readString(reader, 7);
final String? _banner;
_banner = IsarCore.readString(reader, 8);
final String? _website;
_website = IsarCore.readString(reader, 9);
final String? _about;
_about = IsarCore.readString(reader, 10);
final String? _nip05;
_nip05 = IsarCore.readString(reader, 11);
final String? _lud16;
_lud16 = IsarCore.readString(reader, 12);
final String? _lud06;
_lud06 = IsarCore.readString(reader, 13);
final int? _updatedAt;
{
final value = IsarCore.readLong(reader, 14);
if (value == -9223372036854775808) {
_updatedAt = null;
} else {
_updatedAt = value;
}
}
final int? _refreshedTimestamp;
{
final value = IsarCore.readLong(reader, 15);
if (value == -9223372036854775808) {
_refreshedTimestamp = null;
} else {
_refreshedTimestamp = value;
}
}
final object = DbMetadata(
pubKey: _pubKey,
name: _name,
displayName: _displayName,
picture: _picture,
banner: _banner,
website: _website,
about: _about,
nip05: _nip05,
lud16: _lud16,
lud06: _lud06,
updatedAt: _updatedAt,
refreshedTimestamp: _refreshedTimestamp,
);
return object;
}