NotificationEventData.fromJson constructor

NotificationEventData.fromJson(
  1. Object? json
)

Implementation

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