convertList<T> method

List<T?>? convertList<T>(
  1. List? value
)

Implementation

List<T?>? convertList<T>(List<dynamic>? value) {
  if (value == null) {
    return null;
  }
  try {
    return value.map((dynamic e) => asT<T>(e)).toList();
  } catch (e, stackTrace) {
    print('asT<$T> $e $stackTrace');
    return <T>[];
  }
}