HourSummary 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

HourSummary(String group, String description, Duration value)
HourSummary.fromJson(Map<String, dynamic> json)
A necessary factory constructor for creating a new User instance from a map. Pass the map to the generated _$HourSummaryFromJson() constructor. The constructor is named after the source class, in this case, User.
factory

Properties

description String
getter/setter pair
group String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Duration
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 _$HourSummaryToJson.
toString() String
A string representation of this object.
inherited

Operators

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