CowStatus class Null safety Models

개체 상태의 숫자, 개체목록들을 가지고 있는 모델입니다.

Annotations

Constructors

CowStatus({int goodCowCnt = 0, List<Cow> goodCows = const [], int cautionCowCnt = 0, List<Cow> cautionCows = const [], int alertCowCnt = 0, List<Cow> alertCows = const [], int seriousCowCnt = 0, List<Cow> seriousCows = const []})
CowStatus.fromJson(Map<String, dynamic> json)
factory

Properties

alertCowCnt int
경계상태의 소 개체 개수입니다.
@JsonKey(name: 'alert_cow_cnt'), final
alertCowRatio double
전체 개체 숫자 대비 경계 상태 개체 수의 비율입니다.
read-only
alertCows List<Cow>
경계상태의 소 개체 리스트입니다.
@JsonKey(name: 'alert_cows'), final
cautionCowCnt int
주의상태의 소 개체 개수입니다.
@JsonKey(name: 'caution_cow_cnt'), final
cautionCowRatio double
전체 개체 숫자 대비 주의 상태 개체 수의 비율입니다.
read-only
cautionCows List<Cow>
주의상태의 소 개체 리스트입니다.
@JsonKey(name: 'caution_cows'), final
goodCowCnt int
양호상태의 소 개체 수를 나타냅니다.
@JsonKey(name: 'good_cow_cnt'), final
goodCowRatio double
전체 개체 숫자 대비 양호 상태 개체 수의 비율입니다.
read-only
goodCows List<Cow>
양호상태의 소 개체 리스트입니다.
@JsonKey(name: 'good_cows'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seriousCowCnt int
심각상태의 소 개체 개수입니다.
@JsonKey(name: 'serious_cow_cnt'), final
seriousCowRatio double
전체 개체 숫자 대비 심각 상태 개체 수의 비율입니다.
read-only
seriousCows List<Cow>
심각상태의 소 개체 리스트입니다.
@JsonKey(name: 'serious_cows'), final
sum int
모든 개체의 숫자입니다.
read-only

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