convertJsonArray<T> function

List<T> convertJsonArray<T>(
  1. List json
)

for use with dart default types

Implementation

List<T> convertJsonArray<T>(List<dynamic> json) {
  return json.map((e) => e as T).toList();
}