Property.fromJson constructor

Property.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Property.fromJson(Map<String, dynamic> json) {
  return Property(
    name: json['name'] ?? '',
    type:
        decodeEnum(json['type'], Property_PropertyType.fromJson) ??
        Property_PropertyType.$default,
    description: json['description'] ?? '',
  );
}