CreditNoteCreatedEvent.fromJson constructor

CreditNoteCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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