toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'customer_id': customerId,
'plan_identifier': planId,
'expires_at': expiresAt?.millisecondsSinceEpoch,
'only_on_charge_success': onlyOnChargeSuccess,
'payable_with': payableWith,
'credits_based': isCreditBased,
'price_cents': priceCents,
'credits_cycle': creditsCycle,
'credits_min': creditsMin,
'subitems': subitems?.map((x) => x.toMap()).toList(),
'custom_variables': customVariables?.map((x) => x.toMap()).toList(),
};
}