toJson method

Map<String, dynamic> toJson()

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(),
  };
}