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