import 'package:ambito/src/entity/entities.dart'; import 'package:isar/isar.dart'; import 'package:json_annotation/json_annotation.dart'; part 'location_requirements.g.dart'; @JsonSerializable(explicitToJson: true) @collection class LocationRequirements extends BaseEntity with EntityWithIdAndName { LocationRequirements(); @JsonKey(name: 'Maßnahmentabelle Standortansprüche') List? measures; @JsonKey(name: 'Flächentyp') List? areaType; @JsonKey(name: 'Exposition') List? exposition; @JsonKey(name: 'Licht') List? light; @JsonKey(name: 'Feuchtigkeit') List? humidity; @JsonKey(name: 'Topographie') List? topography; @JsonKey(name: 'Geometrie') List? geometry; @JsonKey(name: 'Wertigkeit') IdValueColor? value; @JsonKey(name: 'Kosten') IdValueColor? costs; @JsonKey(name: 'Aufwand') IdValueColor? effort; @JsonKey(name: 'Pflegeaufwand') IdValueColor? careEffort; @JsonKey(name: 'Mindesflächengröße in m²') int? minimalAreaSize; @JsonKey(name: 'Boden') List? ground; factory LocationRequirements.fromJson(Map json) => _$LocationRequirementsFromJson(json); Map toJson() => _$LocationRequirementsToJson(this); }