runTest method

void runTest()

Implementation

void runTest() {
  final data = <String, Object?>{
    'age': 30,
    'name': 'John',
    'role': 'admin',
    'isStudent': true,
    'grades': [95, 88, 75],
  };

  final user = UserModel.fromJson(data);

  print(
    'age = ${user.age}, '
    'name = ${user.name}, '
    'role = ${user.role}, '
    'grades = ${user.grades}, '
    'isStudent = ${user.isStudent}',
  );
}