outsideFacil method

Future<Map<String, dynamic>> outsideFacil(
  1. int outsideFacilId
)

Implementation

Future<Map<String, dynamic>> outsideFacil(int outsideFacilId) async {
  Response resp = await _placeProvider.outsideFacilInfo(outsideFacilId);
  dynamic body = resp.body;

  dynamic convertBody = convertUtf8ToObject(body);
  ServerRespDto serverRespDto = ServerRespDto.fromJson(convertBody);

  if (serverRespDto.code == 1) {
    Map<String, dynamic> data = serverRespDto.data;
    return data;
  } else {
    return {};
  }
}