factory RecordedPurchaseEvents.fromJson(Map<String, Object?> json) => RecordedPurchaseEvents(recorded: (json['recorded'] as num).toInt());