Employee class

Employee model for Ahgora API

This class uses generated sources (json_serializable). Before compiling or running you must generate the sources. Read more about here: https://flutter.dev/docs/development/data-and-backend/json

flutter pub run build_runner build or flutter pub run build_runner watch

Annotations
  • @JsonSerializable()

Constructors

Employee(String id, String name, String enrollment, String pis, DateTime? admission, String department)
Employee.fromJson(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.
factory

Properties

admission DateTime?
getter/setter pair
department String
getter/setter pair
enrollment String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
name String
getter/setter pair
pis String
getter/setter pair
role String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJson is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method _$EmployeeToJson.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited