toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'environment': environment.toJson(),
'allowedCards': allowedCards.map((item) => item.toJson()).toList(),
'supportedMethods':
supportedMethods.map((item) => item.toJson()).toList(),
};
}