You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
774 B
Dart
22 lines
774 B
Dart
4 years ago
|
import 'package:diplomaticquarterapp/config/config.dart';
|
||
|
import 'package:diplomaticquarterapp/core/model/qr/qr_parking_model.dart';
|
||
|
import 'package:diplomaticquarterapp/core/service/base_service.dart';
|
||
|
|
||
|
class QrService extends BaseService {
|
||
|
List<QRParkingModel> qRParkingList = List();
|
||
|
|
||
|
Future getQRParkingByID(int qRParkingID) async {
|
||
|
Map<String, dynamic> body = Map();
|
||
|
body['QRParkingID'] = qRParkingID;
|
||
|
await baseAppClient.post(GET_QR_PARKING,
|
||
|
onSuccess: (dynamic response, int statusCode) {
|
||
|
response['List_SWP_QRParkingModel'].forEach((item) {
|
||
|
qRParkingList.add(QRParkingModel.fromJson(item));
|
||
|
});
|
||
|
}, onFailure: (String error, int statusCode) {
|
||
|
hasError = true;
|
||
|
super.error = error;
|
||
|
}, body: body);
|
||
|
}
|
||
|
}
|