CustomerCreatedEvent.fromJson constructor

CustomerCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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