EpochData constructor

EpochData({
  1. Int64? epoch,
  2. Int64? eon,
  3. Int64? era,
  4. bool? isComplete,
  5. Int64? startHeight,
  6. Int64? endHeight,
  7. Int64? startSlot,
  8. Int64? endSlot,
  9. Int64? startTimestamp,
  10. Int64? endTimestamp,
  11. Int64? transactionCount,
  12. Int128? totalTransactionReward,
  13. Int128? activeStake,
  14. Int128? inactiveStake,
  15. Int64? dataBytes,
})

Implementation

factory EpochData({
  $fixnum.Int64? epoch,
  $fixnum.Int64? eon,
  $fixnum.Int64? era,
  $core.bool? isComplete,
  $fixnum.Int64? startHeight,
  $fixnum.Int64? endHeight,
  $fixnum.Int64? startSlot,
  $fixnum.Int64? endSlot,
  $fixnum.Int64? startTimestamp,
  $fixnum.Int64? endTimestamp,
  $fixnum.Int64? transactionCount,
  $3.Int128? totalTransactionReward,
  $3.Int128? activeStake,
  $3.Int128? inactiveStake,
  $fixnum.Int64? dataBytes,
}) {
  final $result = create();
  if (epoch != null) {
    $result.epoch = epoch;
  }
  if (eon != null) {
    $result.eon = eon;
  }
  if (era != null) {
    $result.era = era;
  }
  if (isComplete != null) {
    $result.isComplete = isComplete;
  }
  if (startHeight != null) {
    $result.startHeight = startHeight;
  }
  if (endHeight != null) {
    $result.endHeight = endHeight;
  }
  if (startSlot != null) {
    $result.startSlot = startSlot;
  }
  if (endSlot != null) {
    $result.endSlot = endSlot;
  }
  if (startTimestamp != null) {
    $result.startTimestamp = startTimestamp;
  }
  if (endTimestamp != null) {
    $result.endTimestamp = endTimestamp;
  }
  if (transactionCount != null) {
    $result.transactionCount = transactionCount;
  }
  if (totalTransactionReward != null) {
    $result.totalTransactionReward = totalTransactionReward;
  }
  if (activeStake != null) {
    $result.activeStake = activeStake;
  }
  if (inactiveStake != null) {
    $result.inactiveStake = inactiveStake;
  }
  if (dataBytes != null) {
    $result.dataBytes = dataBytes;
  }
  return $result;
}