fromNip65 static method

UserRelayList fromNip65(
  1. Nip65 nip65
)

Implementation

static UserRelayList fromNip65(Nip65 nip65) {
  return UserRelayList(
      pubKey: nip65.pubKey,
      relays: {
        for (var entry in nip65.relays.entries) entry.key: entry.value
      },
      createdAt: nip65.createdAt,
      refreshedTimestamp: DateTime.now().millisecondsSinceEpoch ~/ 1000);
}