Nenhuma descrição

Horario.dart 833B

1234567891011121314151617181920212223242526272829
  1. class Horario {
  2. String id;
  3. String oficina_id;
  4. String dia_semana;
  5. String open_time;
  6. String close_time;
  7. Horario({this.id, this.oficina_id, this.dia_semana, this.open_time, this.close_time});
  8. factory Horario.allFromJson(Map<String, dynamic> json) {
  9. return Horario (
  10. id :json['id'] as String,
  11. oficina_id: json['oficina_id'] as String,
  12. dia_semana: json['dia_semana'] as String,
  13. open_time: json['open_time'] as String,
  14. close_time: json['close_time'] as String,
  15. );
  16. }
  17. factory Horario.infoFromJson(Map<String, dynamic> json) {
  18. return Horario (
  19. id :json['id'] as String,
  20. oficina_id: json['oficina_id'] as String,
  21. dia_semana: json['dia_semana'] as String,
  22. open_time: json['open_time'] as String,
  23. close_time: json['close_time'] as String,
  24. );
  25. }
  26. }