PriceCreatedEvent.fromJson constructor

PriceCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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