No Description

Oficina.dart 749B

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