Permalink
Branch: master
Find file Copy path
71f40c2 Jul 8, 2018
1 contributor

Users who have contributed to this file

19 lines (17 sloc) 372 Bytes
class Student{
String studentId;
String studentName;
int studentScores;
Student({
this.studentId,
this.studentName,
this.studentScores
});
factory Student.fromJson(Map<String, dynamic> parsedJson){
return Student(
studentId: parsedJson['id'],
studentName : parsedJson['name'],
studentScores : parsedJson ['score']
);
}
}