OutputChannelMapping.fromJson constructor

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

Implementation

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