Day 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.new()

Constructors

Day(DateTime reference, String schedule, String workday, List<ClockTime> clockTimes, List<HourSummary> hourSummaries, int workLeaves, String state)
Day.fromJson(Map<String, dynamic> json)
A necessary factory constructor for creating a new User instance from a map. Pass the map to the generated _$DayFromJson() constructor. The constructor is named after the source class, in this case, User.
factory

Properties

clockTimes List<ClockTime>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hourSummaries List<HourSummary>
getter/setter pair
reference DateTime
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schedule String
getter/setter pair
state String
getter/setter pair
workday String
getter/setter pair
workLeaves int
getter/setter pair

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 _$DayToJson.
toString() String
A string representation of this object.
inherited

Operators

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