PersonUpdatedEvent.fromJson constructor

PersonUpdatedEvent.fromJson(
  1. Object? json
)

Implementation

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