inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetListFromJson function

List<InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet> inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetListFromJson(
  1. List? inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet, [
  2. List<InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet>? defaultValue
])

Implementation

List<enums.InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet>
    inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetListFromJson(
  List? inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet, [
  List<enums.InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet>? defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet == null) {
    return defaultValue ?? [];
  }

  return inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet
      .map((e) => inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetFromJson(
          e.toString()))
      .toList();
}