AccountSchedule.fromJson constructor
AccountSchedule.fromJson(
- Object? json
Implementation
factory AccountSchedule.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountSchedule(
delayDays: map['delay_days'] == null
? null
: AccountDelayDays.fromJson(map['delay_days']),
interval: map['interval'] == null
? null
: AccountInterval.fromJson(map['interval']),
monthlyAnchor: map['monthly_anchor'] == null
? null
: (map['monthly_anchor'] as num).toInt(),
weeklyAnchor: map['weekly_anchor'] == null
? null
: AccountWeeklyAnchor.fromJson(map['weekly_anchor']),
);
}