EpochData constructor
EpochData({})
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,
$4.Int128? totalTransactionReward,
$4.Int128? activeStake,
$4.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;
}