Farm class Null safety Models
농장 모델입니다.
- Annotations
Constructors
- Farm({required String id, required String name, required String zipcode, required String address, required String addressDetail, required String greeting, required String imagePath, required String admCode, required double lat, required double lng, required double weatherX, required double weatherY, required int calfCnt, required int breedingCattleCnt, required int fatteningCattleCnt, required int dairyCnt})
-
Farm.fromJson(Map<
String, dynamic> json) -
factory
Properties
- address → String
-
@JsonKey(name: 'address'), final
- addressDetail → String
-
@JsonKey(name: 'address_detail'), final
- admCode → String
-
@JsonKey(name: 'adm_code'), final
- breedingCattleCnt → int
-
@JsonKey(name: 'breeding_cattle_cnt'), final
- calfCnt → int
-
@JsonKey(name: 'calf_cnt'), final
- dairyCnt → int
-
@JsonKey(name: 'dairy_cnt'), final
- fatteningCattleCnt → int
-
@JsonKey(name: 'fattening_cattle_cnt'), final
- greeting → String
-
@JsonKey(name: 'greeting'), final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → String
-
@JsonKey(name: 'id'), final
- imagePath → String
-
@JsonKey(name: 'image_path', defaultValue: ""), final
- lat → double
-
@JsonKey(name: 'lat'), final
- lng → double
-
@JsonKey(name: 'lng'), final
- name → String
-
@JsonKey(name: 'name'), final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- weatherX → double
-
@JsonKey(name: 'weather_x'), final
- weatherY → double
-
@JsonKey(name: 'weather_y'), final
- zipcode → String
-
@JsonKey(name: 'zipcode'), final
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