PersonCreatedEvent.fromJson constructor

PersonCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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