getConvenienceFoodInfo method

dynamic getConvenienceFoodInfo()

간편식의 정보를 가져오는 함수입니다.

Implementation

getConvenienceFoodInfo() async {
  try {
    Response response = await _dio.get(
      "$apiUrl/dalgeurak/convenience",
      options: Options(contentType: "application/json"),
    );

    return {
      "success": true,
      "content": response.data['convenience']
    };
  } on DioError catch (e) {
    return {
      "success": false,
      "content": e.response?.data["message"]
    };
  }
}