entities<T extends Entity> method

List? entities<T extends Entity>(
  1. Iterable<T?>? value
)

Converts a collection of Entity instances. *

  • Default: serializes it by converting each of them via entity.

Implementation

List? entities<T extends Entity>(Iterable<T?>? value) {
  if (value == null) return null;

  final result = [];
  for (final each in value) {
    final o = entity(each);
    if (o != null) result.add(o);
  }
  return result;
}