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