AudioTrackSelection.fromJson constructor

AudioTrackSelection.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AudioTrackSelection.fromJson(Map<String, dynamic> json) {
  return AudioTrackSelection(
    tracks: (json['tracks'] as List)
        .whereNotNull()
        .map((e) => AudioTrack.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}