toJson method

Map<String, dynamic> toJson()

convert from json (except pub_key)

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['name'] = name;
  data['display_name'] = displayName;
  data['picture'] = picture;
  data['banner'] = banner;
  data['website'] = website;
  data['about'] = about;
  data['nip05'] = nip05;
  data['lud16'] = lud16;
  data['lud06'] = lud06;
  return data;
}