fromMetadata static method

DbMetadata fromMetadata(
  1. Metadata metadata
)

Implementation

static DbMetadata fromMetadata(Metadata metadata) {
  return DbMetadata(
      pubKey: metadata.pubKey,
      name: metadata.name,
      displayName: metadata.displayName,
      picture: metadata.picture,
      banner: metadata.banner,
      website: metadata.website,
      about: metadata.about,
      nip05: metadata.nip05,
      lud16: metadata.lud16,
      lud06: metadata.lud06,
      updatedAt: metadata.updatedAt,
      refreshedTimestamp: metadata.refreshedTimestamp);
}