RemixSettings.fromJson constructor

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

Implementation

factory RemixSettings.fromJson(Map<String, dynamic> json) {
  return RemixSettings(
    channelMappings: (json['channelMappings'] as List)
        .whereNotNull()
        .map((e) => AudioChannelMapping.fromJson(e as Map<String, dynamic>))
        .toList(),
    channelsIn: json['channelsIn'] as int?,
    channelsOut: json['channelsOut'] as int?,
  );
}