toListOfObject<T> method

List<T>? toListOfObject<T>(
  1. T convert(
    1. Map<String, dynamic> json
    )
)

Convert List<Map<String,dynamic>> to List

Implementation

List<T>? toListOfObject<T>(T Function(Map<String, dynamic> json) convert) {
  if (this == null) {
    return null;
  }
  return (this as List).map((e) => convert(e)).toList();
}