inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSetListFromJson function

List<InputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet> inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSetListFromJson(
  1. List? inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet, [
  2. List<InputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet>? defaultValue
])

Implementation

List<enums.InputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet>
    inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSetListFromJson(
  List? inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet, [
  List<enums.InputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet>?
      defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet == null) {
    return defaultValue ?? [];
  }

  return inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSet
      .map((e) =>
          inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSetFromJson(
              e.toString()))
      .toList();
}