nullableListFrom static method

List<StringIdText>? nullableListFrom(
  1. List? list
)

Converts a nullable list of dynamic JSON objects to a nullable list of StringIdText.

Returns null if list is null.

Implementation

static List<StringIdText>? nullableListFrom(List<dynamic>? list) {
  return list == null ? null : listFrom(list);
}