class Oficina { String id; String name; String address; String telephone; String email; Oficina({this.id, this.name, this.address, this.telephone, this.email}); factory Oficina.allFromJson(Map json) { return Oficina ( id :json['id'] as String, name: json['name'] as String, address: json['address'] as String, telephone: json['telephone'] as String, email: json['email'] as String, ); } factory Oficina.infoFromJson(Map json) { return Oficina ( id :json['id'] as String, name: json['name'] as String, address: json['address'] as String, telephone: json['telephone'] as String, email: json['email'] as String, ); } }