|
@@ -14,15 +14,15 @@ class Services {
|
14
|
14
|
try {
|
15
|
15
|
var map = Map<String, dynamic>();
|
16
|
16
|
map['action'] = _GET_ALL;
|
17
|
|
- print('antes');
|
|
17
|
+ //print('antes');
|
18
|
18
|
// final response = await http.get(URL_GET_ALL);
|
19
|
19
|
// print('despues');
|
20
|
20
|
// print('getOficinas Response: ${response.body}');
|
21
|
21
|
// if (200 == response.statusCode) {
|
22
|
22
|
// List<Oficina> list = parseResponse(response.body);
|
23
|
23
|
final response = '[{"id":"1","name":"test1"},{"id":"2","name":"test2"},{"id":"3","name":"test3"}]';
|
24
|
|
- print('despues');
|
25
|
|
- print('getOficinas Response: $response');
|
|
24
|
+ //print('despues');
|
|
25
|
+ //print('getOficinas Response: $response');
|
26
|
26
|
if (200 == 200) {
|
27
|
27
|
List<Oficina> list = parseResponse(response);
|
28
|
28
|
return list;
|