parseModel method
Implementation
void parseModel(Map data) {
age = readInt(data, 'age'); // 30
name = readString(data, 'name'); // 'John'
role = readEnum(data, 'role', Role.values, Role.unknown); // admin,
isStudent = readBool(data, 'isStudent'); // true
grades = readList(data, 'grades'); // [95, 88]
}