fromJsonStorage static method

Nip01Event fromJsonStorage(
  1. Map<String, Object?> json
)

Implementation

static Nip01Event fromJsonStorage(Map<String, Object?> json) {
  // Restore additional properties not handled by fromJson

  final event = Nip01EventModel.fromJson(json);

  return event.copyWith(
    validSig: json['validSig'] as bool?,
    sources: json['sources'] != null
        ? List<String>.from(json['sources'] as List)
        : const [],
  );
}