SubscriptionPlan.fromJson constructor

SubscriptionPlan.fromJson(
  1. Map json_
)

Implementation

SubscriptionPlan.fromJson(core.Map json_)
    : this(
        commitmentInterval: json_.containsKey('commitmentInterval')
            ? SubscriptionPlanCommitmentInterval.fromJson(
                json_['commitmentInterval']
                    as core.Map<core.String, core.dynamic>)
            : null,
        isCommitmentPlan: json_.containsKey('isCommitmentPlan')
            ? json_['isCommitmentPlan'] as core.bool
            : null,
        planName: json_.containsKey('planName')
            ? json_['planName'] as core.String
            : null,
      );