CustomerDeletedEvent.fromJson constructor

CustomerDeletedEvent.fromJson(
  1. Object? json
)

Implementation

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