PromotionCodeUpdatedEvent.fromJson constructor

PromotionCodeUpdatedEvent.fromJson(
  1. Object? json
)

Implementation

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