toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'title': title,
'isSelected': isSelected,
'confirmation_required': confirmationRequired,
'icons': icons,
'type': methodTypeToJson(type),
'required_billing_data':
requiredBillingData?.map((e) => e.toJson()).toList(),
};
}