MonthlyReport 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
-
MonthlyReport(Employee employee, DateTime reference, List<
Day> days) -
MonthlyReport.fromJson(Map<
String, dynamic> json) -
A necessary factory constructor for creating a new User instance
from a map. Pass the map to the generated
_$MonthlyReportFromJson()
constructor. The constructor is named after the source class, in this case, User.factory
Properties
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_$MonthlyReportToJson
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited