toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'cert_index': certIndex,
'pool_id': poolId,
'vrf_key': vrfKey,
'pledge': pledge,
'margin_cost': marginCost,
'fixed_cost': fixedCost,
'reward_account': rewardAccount,
'active_epoch': activeEpoch,
'metadata': metadata?.toJson(),
'relays': relays.map((relay) => relay.toJson()).toList(),
};
}