Employee.fromJson constructor

Employee.fromJson(
  1. Map<String, dynamic> json
)

A necessary factory constructor for creating a new User instance from a map. Pass the map to the generated _$EmployeeFromJson() constructor. The constructor is named after the source class, in this case, User.

Implementation

factory Employee.fromJson(Map<String, dynamic> json) =>
    _$EmployeeFromJson(json);