toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
type.name: {
'committee_cold_credential': committeeColdCredential.toJson(),
'committee_hot_credential': committeeHotCredential.toJson()
}
};
}