inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetListFromJson function

List<InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet> inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetListFromJson(
  1. List? inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet, [
  2. List<InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet>? defaultValue
])

Implementation

List<enums.InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet>
    inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetListFromJson(
  List? inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet, [
  List<enums.InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet>?
      defaultValue,
]) {
  if (inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet == null) {
    return defaultValue ?? [];
  }

  return inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet
      .map((e) =>
          inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetFromJson(
              e.toString()))
      .toList();
}