service_time_period_entity.dart 714 B

1234567891011121314151617181920212223242526
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/service_time_period_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/service_time_period_entity.g.dart';
  5. @JsonSerializable()
  6. class ServiceTimePeriodEntity {
  7. @JSONField(name: "time_text")
  8. String? timeText;
  9. String? time;
  10. bool? urgent;
  11. bool? holiday;
  12. bool? night;
  13. bool? enable;
  14. ServiceTimePeriodEntity();
  15. factory ServiceTimePeriodEntity.fromJson(Map<String, dynamic> json) => $ServiceTimePeriodEntityFromJson(json);
  16. Map<String, dynamic> toJson() => $ServiceTimePeriodEntityToJson(this);
  17. @override
  18. String toString() {
  19. return jsonEncode(this);
  20. }
  21. }