RelayInformations.fromNip11Response constructor

RelayInformations.fromNip11Response(
  1. Map<String, dynamic> json
)

Implementation

factory RelayInformations.fromNip11Response(Map<String, dynamic> json) {
  return RelayInformations(
    contact: json['contact'],
    description: json['description'],
    name: json['name'],
    pubkey: json['pubkey'],
    software: json['software'],
    supportedNips:
        (json['supported_nips'] as List).map((e) => e as int).toList(),
    version: json['version'],
  );
}