class Horario { String id; String oficina_id; String dia_semana; String open_time; String close_time; Horario({this.id, this.oficina_id, this.dia_semana, this.open_time, this.close_time}); factory Horario.allFromJson(Map json) { return Horario ( id :json['id'] as String, oficina_id: json['oficina_id'] as String, dia_semana: json['dia_semana'] as String, open_time: json['open_time'] as String, close_time: json['close_time'] as String, ); } factory Horario.infoFromJson(Map json) { return Horario ( id :json['id'] as String, oficina_id: json['oficina_id'] as String, dia_semana: json['dia_semana'] as String, open_time: json['open_time'] as String, close_time: json['close_time'] as String, ); } }