inputPortsDviDviPortNumberDynacalRedGamutGetSetListFromJson function

List<InputPortsDviDviPortNumberDynacalRedGamutGetSet> inputPortsDviDviPortNumberDynacalRedGamutGetSetListFromJson(
  1. List? inputPortsDviDviPortNumberDynacalRedGamutGetSet, [
  2. List<InputPortsDviDviPortNumberDynacalRedGamutGetSet>? defaultValue
])

Implementation

List<enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet>
    inputPortsDviDviPortNumberDynacalRedGamutGetSetListFromJson(
  List? inputPortsDviDviPortNumberDynacalRedGamutGetSet, [
  List<enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet>? defaultValue,
]) {
  if (inputPortsDviDviPortNumberDynacalRedGamutGetSet == null) {
    return defaultValue ?? [];
  }

  return inputPortsDviDviPortNumberDynacalRedGamutGetSet
      .map((e) =>
          inputPortsDviDviPortNumberDynacalRedGamutGetSetFromJson(e.toString()))
      .toList();
}