toJsonFromList method Null safety

List toJsonFromList(
  1. List<TextTrack> tracks
)

Implementation

static List<dynamic> toJsonFromList(List<TextTrack> tracks) {
  return tracks.map((t) => t.toJson()).toList();
}