TransactionCommitmentInfoIOS.fromJson constructor

TransactionCommitmentInfoIOS.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TransactionCommitmentInfoIOS.fromJson(Map<String, dynamic> json) {
  return TransactionCommitmentInfoIOS(
    billingPeriodNumber: json['billingPeriodNumber'] as int,
    commitmentExpiresDate: (json['commitmentExpiresDate'] as num).toDouble(),
    commitmentPrice: (json['commitmentPrice'] as num).toDouble(),
    totalBillingPeriods: json['totalBillingPeriods'] as int,
  );
}