inputPortsDviDviPortNumberControlsColourSpaceColourGetSetListFromJson function

List<InputPortsDviDviPortNumberControlsColourSpaceColourGetSet> inputPortsDviDviPortNumberControlsColourSpaceColourGetSetListFromJson(
  1. List? inputPortsDviDviPortNumberControlsColourSpaceColourGetSet, [
  2. List<InputPortsDviDviPortNumberControlsColourSpaceColourGetSet>? defaultValue
])

Implementation

List<enums.InputPortsDviDviPortNumberControlsColourSpaceColourGetSet>
    inputPortsDviDviPortNumberControlsColourSpaceColourGetSetListFromJson(
  List? inputPortsDviDviPortNumberControlsColourSpaceColourGetSet, [
  List<enums.InputPortsDviDviPortNumberControlsColourSpaceColourGetSet>?
      defaultValue,
]) {
  if (inputPortsDviDviPortNumberControlsColourSpaceColourGetSet == null) {
    return defaultValue ?? [];
  }

  return inputPortsDviDviPortNumberControlsColourSpaceColourGetSet
      .map((e) =>
          inputPortsDviDviPortNumberControlsColourSpaceColourGetSetFromJson(
              e.toString()))
      .toList();
}