class Property {
  int propertyId;
  String propertyName;
  String propertyUnit;
  String propertyNameTranslation;
  int top;
  int left;
  double value;

  Property.fromJson(Map json) {
    this.propertyId = json['propertyId'];
    this.propertyName = json['propertyName'];
    this.propertyUnit = json['propertyUnit'];
    this.propertyNameTranslation =
        json['translations'] != null && (json['translations']).length > 0 ? json['translations'][0]['propertyName'] : this.propertyName;
  }
}