AudioChannelMapping.fromJson constructor

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

Implementation

factory AudioChannelMapping.fromJson(Map<String, dynamic> json) {
  return AudioChannelMapping(
    inputChannelLevels: (json['inputChannelLevels'] as List)
        .whereNotNull()
        .map((e) => InputChannelLevel.fromJson(e as Map<String, dynamic>))
        .toList(),
    outputChannel: json['outputChannel'] as int,
  );
}