CreateRule.fromJson constructor
Implementation
factory CreateRule.fromJson(Map<String, dynamic> json) {
return CreateRule(
cronExpression: json['CronExpression'] as String?,
interval: json['Interval'] as int?,
intervalUnit: (json['IntervalUnit'] as String?)?.toIntervalUnitValues(),
times: (json['Times'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}