CowDataHour class Null safety Models

시간별 소 데이터입니다. 각 ActionType별 데이터가 CowDataValue객체로 들어있습니다.

Annotations

Constructors

CowDataHour({DateTime? datetime, required int hour, required CowDataValue lactation, required CowDataValue ruminant, required CowDataValue eating, required CowDataValue drinking, required CowDataValue sitting, required CowDataValue standing, required CowDataValue activity, required CowDataValue cough, required CowDataValue heading, required CowDataValue digestive, required CowDataValue respiratory, required CowDataValue bcs})
CowDataHour.fromJson(Map<String, dynamic> json)
factory

Properties

activity CowDataValue
@JsonKey(name: 'activity'), read / write
bcs CowDataValue
@JsonKey(name: 'bcs'), read / write
cough CowDataValue
@JsonKey(name: 'cough'), read / write
datetime DateTime?
이 데이터의 날짜입니다.
@JsonKey(name: 'datetime', fromJson: dateTimeFromJson, toJson: dateTimeToJson), read / write
digestive CowDataValue
@JsonKey(name: 'digestive'), read / write
drinking CowDataValue
@JsonKey(name: 'drinking'), read / write
eating CowDataValue
@JsonKey(name: 'eating'), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
heading CowDataValue
@JsonKey(name: 'heading'), read / write
hour int
시각 값 입니다. 시간단위가 1이면 0, 1, 2, ... , 22, 23으로 들어갈것이고 시간단위가 24면 0이 들어있습니다.
@JsonKey(name: 'hour'), read / write
lactation CowDataValue
ActionType별 데이터입니다.
@JsonKey(name: 'lactation'), read / write
respiratory CowDataValue
@JsonKey(name: 'respiratory'), read / write
ruminant CowDataValue
@JsonKey(name: 'ruminant'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sitting CowDataValue
@JsonKey(name: 'sitting'), read / write
standing CowDataValue
@JsonKey(name: 'standing'), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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

Static Methods

bandList(Map<String, dynamic> map) List<double>
toBandMap(List<double> list) Map<String, dynamic>