class Oficina { String id; String name; Oficina({this.id, this.name}); factory Oficina.fromJson(Map<String, dynamic> json) { return Oficina ( id :json['id'] as String, name: json['name'] as String, ); } }