Input$OpeningHoursInput.fromJson constructor
Input$OpeningHoursInput.fromJson(
- Map<String, dynamic> data
)
Implementation
factory Input$OpeningHoursInput.fromJson(Map<String, dynamic> data) {
final result$data = <String, dynamic>{};
final l$status = data['status'];
result$data['status'] = fromJson$Enum$OpeningStatus((l$status as String));
final l$hours = data['hours'];
result$data['hours'] = (l$hours as List<dynamic>)
.map((e) =>
Input$OpeningHoursDayInput.fromJson((e as Map<String, dynamic>)))
.toList();
return Input$OpeningHoursInput._(result$data);
}