PlanCreatedEvent.fromJson constructor

PlanCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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