inputPortsHdmiHdmiPortNumberControlsColourSpaceColourGetSetNullableListFromJson function

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

Implementation

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

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