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