SubscriptionCost.fromJson constructor

SubscriptionCost.fromJson(
  1. Map json_
)

Implementation

SubscriptionCost.fromJson(core.Map json_)
  : this(
      amount:
          json_.containsKey('amount')
              ? Price.fromJson(
                json_['amount'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      period: json_['period'] as core.String?,
      periodLength: json_['periodLength'] as core.String?,
    );