ProductUpdatedEvent.fromJson constructor

ProductUpdatedEvent.fromJson(
  1. Object? json
)

Implementation

factory ProductUpdatedEvent.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ProductUpdatedEvent(object: Product.fromJson(map['object']));
}