Subscription.fromJson constructor
Subscription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Subscription.fromJson(Map<String, dynamic> json) {
return Subscription(
subscriptionLimits: SubscriptionLimits.fromJson(
json['SubscriptionLimits'] as Map<String, dynamic>),
autoRenew: (json['AutoRenew'] as String?)?.toAutoRenew(),
endTime: timeStampFromJson(json['EndTime']),
limits: (json['Limits'] as List?)
?.whereNotNull()
.map((e) => Limit.fromJson(e as Map<String, dynamic>))
.toList(),
proactiveEngagementStatus: (json['ProactiveEngagementStatus'] as String?)
?.toProactiveEngagementStatus(),
startTime: timeStampFromJson(json['StartTime']),
timeCommitmentInSeconds: json['TimeCommitmentInSeconds'] as int?,
);
}