child Vaccines
parent
db19eec35f
commit
9ab0d66888
@ -0,0 +1,29 @@
|
||||
|
||||
import 'package:diplomaticquarterapp/core/model/childvaccines/List_BabyInformationModel.dart';
|
||||
import 'package:diplomaticquarterapp/config/config.dart';
|
||||
import '../base_service.dart';
|
||||
|
||||
class ChildVaccinesService extends BaseService{
|
||||
|
||||
List<List_BabyInformationModel> BabyInformationModelList = List();
|
||||
Map<String, dynamic> body = Map();
|
||||
Future getAllBabyInformationOrders() async {
|
||||
hasError = false;
|
||||
body['List_BabyInformationModel'] = false;
|
||||
|
||||
|
||||
await baseAppClient.post(GET_BABYINFORMATION_REQUEST,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
BabyInformationModelList.clear();
|
||||
|
||||
response['List_BabyInformationModel'].forEach((vital) {
|
||||
|
||||
BabyInformationModelList.add(List_BabyInformationModel.fromJson(vital));
|
||||
});
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: body);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue