|
|
|
|
@ -50,6 +50,7 @@ class ScheduleData {
|
|
|
|
|
final String? address;
|
|
|
|
|
final String? latitude;
|
|
|
|
|
final String? longitude;
|
|
|
|
|
final List<WeeklyOffDay>? weeklyOffDays;
|
|
|
|
|
final List<ScheduleService>? scheduleServices;
|
|
|
|
|
String branchId;
|
|
|
|
|
|
|
|
|
|
@ -67,6 +68,7 @@ class ScheduleData {
|
|
|
|
|
this.address,
|
|
|
|
|
this.latitude,
|
|
|
|
|
this.longitude,
|
|
|
|
|
this.weeklyOffDays,
|
|
|
|
|
this.scheduleServices,
|
|
|
|
|
this.branchId = "",
|
|
|
|
|
});
|
|
|
|
|
@ -85,6 +87,7 @@ class ScheduleData {
|
|
|
|
|
address: json["address"],
|
|
|
|
|
latitude: json["latitude"],
|
|
|
|
|
longitude: json["longitude"],
|
|
|
|
|
weeklyOffDays: json["weeklyOffDays"] == null ? [] : List<WeeklyOffDay>.from(json["weeklyOffDays"]!.map((x) => WeeklyOffDay.fromJson(x))),
|
|
|
|
|
scheduleServices: json["scheduleServices"] == null ? [] : List<ScheduleService>.from(json["scheduleServices"]!.map((x) => ScheduleService.fromJson(x))),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -125,3 +128,23 @@ class ScheduleService {
|
|
|
|
|
"providerServiceName": providerServiceName,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class WeeklyOffDay {
|
|
|
|
|
final int? id;
|
|
|
|
|
final int? dayNumber;
|
|
|
|
|
|
|
|
|
|
WeeklyOffDay({
|
|
|
|
|
this.id,
|
|
|
|
|
this.dayNumber,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
factory WeeklyOffDay.fromJson(Map<String, dynamic> json) => WeeklyOffDay(
|
|
|
|
|
id: json["id"],
|
|
|
|
|
dayNumber: json["dayNumber"],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"dayNumber": dayNumber,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|