Sensor class Null safety Models

센서 모델입니다.

Annotations

Constructors

Sensor({required String id, Farm? farm, Cow? cow, required List<CowGroup> groups})
Sensor.fromJson(Map<String, dynamic> json)
factory

Properties

cow Cow?
소 아이디 입니다.
@JsonKey(name: 'cow_id', fromJson: cowFromCowId, toJson: cowToCowId), read / write
farm Farm?
농장 아이디입니다.
@JsonKey(name: 'farm_id', fromJson: farmFromFarmId, toJson: farmToFarmId), read / write
groups List<CowGroup>
환경설정/기기관리/센서 현황 화면에서 표시되는 그룹입니다. 해당 센서를 착용한 소의 그룹을 가져옵니다.
@JsonKey(name: 'groups', fromJson: groupsFromJson, toJson: groupsToJson), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
센서 아이디 (FHL-00000000)
@JsonKey(name: 'id'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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. [...]
inherited

Operators

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