runTest method

void runTest()

Implementation

void runTest() {
  final data = {
    'age': 30,
    'name': 'John',
    'role': 'admin',
    'isStudent': true,
    'grades': [95, 88, 75],
  };
  UserModel1 userModel = UserModel1()..parseModel(data);
  UserModel2 userMode2 = UserModel2()..parseModel(data);
  debugPrint(
    'age =  ${userModel.age}, '
    'name = ${userModel.name},'
    'role =  ${userModel.role}, '
    'grades =  ${userModel.grades}, '
    'isStudent =  ${userModel.isStudent}',
  );
  debugPrint(
    'age =  ${userMode2.age}, '
    'name = ${userMode2.name},'
    'role =  ${userMode2.role}, '
    'grades =  ${userMode2.grades}, '
    'isStudent =  ${userMode2.isStudent}',
  );
}