toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'operator': operator.toJson(),
'vrf_keyhash': vrfKeyHash.toJson(),
'pledge': pledge.toString(),
'cost': cost.toString(),
'margin': margin.toJson(),
'reward_account': rewardAccount.toJson(),
'pool_owners': poolOwners.map((e) => e.toJson()).toList(),
'relays': relays.map((e) => e.toJson()).toList(),
'pool_metadata': poolMetadata?.toJson()
};
}