TopupCreatedEvent.fromJson constructor

TopupCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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