Metadata.fromJson constructor

Metadata.fromJson(
  1. Map<String, dynamic> json
)

convert from json

Implementation

Metadata.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  displayName = json['display_name'];
  picture = json['picture'];
  banner = json['banner'];
  website = json['website'];
  about = json['about'];
  try {
    nip05 = json['nip05'];
  } catch (e) {
    // sometimes people put maps in here
  }
  lud16 = json['lud16'];
  lud06 = json['lud06'];
}