toJson method
Dont change order of toJson the key index must be equal to protoConfig fields.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'mining_reward': miningReward.map((e) => e.toJson()).toList(),
'traffic_reward': trafficReward.map((e) => e.toJson()).toList(),
};
}