listFromJson static method

List<PropertyItems> listFromJson(
  1. List? json
)

Implementation

static List<PropertyItems> listFromJson(List<dynamic>? json) {
  if (json == null) {
    return <PropertyItems>[];
  }

  return json.fold(<PropertyItems>[],
      (List<PropertyItems> previousValue, element) {
    final PropertyItems? object = PropertyItems.fromJson(element);
    if (object is PropertyItems) {
      previousValue.add(object);
    }

    return previousValue;
  });
}