Event constructor

Event({
  1. Event_Eon? eon,
  2. Event_Era? era,
  3. Event_Epoch? epoch,
  4. Event_Header? header,
  5. Event_IoTransaction? ioTransaction,
})

Implementation

factory Event({
  Event_Eon? eon,
  Event_Era? era,
  Event_Epoch? epoch,
  Event_Header? header,
  Event_IoTransaction? ioTransaction,
}) {
  final _result = create();
  if (eon != null) {
    _result.eon = eon;
  }
  if (era != null) {
    _result.era = era;
  }
  if (epoch != null) {
    _result.epoch = epoch;
  }
  if (header != null) {
    _result.header = header;
  }
  if (ioTransaction != null) {
    _result.ioTransaction = ioTransaction;
  }
  return _result;
}