factory Schedule.fromJson(Map<String, dynamic> json) { return Schedule( scheduleExpression: json['ScheduleExpression'] as String?, state: (json['State'] as String?)?.toScheduleState(), ); }