ChannelMapping.fromJson constructor

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

Implementation

factory ChannelMapping.fromJson(Map<String, dynamic> json) {
  return ChannelMapping(
    outputChannels: (json['outputChannels'] as List?)
        ?.whereNotNull()
        .map((e) => OutputChannelMapping.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}