generateSubscriptionObjectData method

dynamic generateSubscriptionObjectData(
  1. dynamic datum
)

Implementation

generateSubscriptionObjectData(var datum) {
  var objectData = {};
  objectData['price'] = datum.amount!.toString();
  objectData['currency'] = datum.currency!;
  objectData['availabilityid'] = datum.availabilityset![0];
  objectData['planid'] = datum.planid!;
  return objectData;
}