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.
doctor_app_flutter/lib/screens/patients/TopTenUsersModelResponse.dart

31 lines
767 B
Dart

/*
*@author: Amjad Amireh
*@Date:27/4/2020
*@param:
*@return:pass a List<dynamic> to a List<MyModel> from a JSON
*@desc:
*/
import 'package:doctor_app_flutter/screens/patients/patiant_info_model.dart';
class TopTenUsersModelResponse {
final List<PatiantInformtion> list;
String firstName;
TopTenUsersModelResponse({
this.list,
this.firstName,
});
factory TopTenUsersModelResponse.fromJson(List<dynamic> parsedJson) {
// List<PatientModel> list = new List<PatientModel>();
List<PatiantInformtion> list = new List<PatiantInformtion>();
//PatiantInformtion
list = parsedJson.map((i) => PatiantInformtion.fromJson(i)).toList();
return new TopTenUsersModelResponse(list: list);
}
}
class PatiantInformtionl {
}