QuotesResourceSubscriptionDataSubscriptionData.fromJson constructor
QuotesResourceSubscriptionDataSubscriptionData.fromJson(
- Object? json
Implementation
factory QuotesResourceSubscriptionDataSubscriptionData.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return QuotesResourceSubscriptionDataSubscriptionData(
description:
map['description'] == null ? null : (map['description'] as String),
effectiveDate: map['effective_date'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['effective_date'] as int).toInt()),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
trialPeriodDays: map['trial_period_days'] == null
? null
: (map['trial_period_days'] as num).toInt(),
);
}