documentNameMatchCodeNullableListFromJson function

List<DocumentNameMatchCode>? documentNameMatchCodeNullableListFromJson(
  1. List? documentNameMatchCode, [
  2. List<DocumentNameMatchCode>? defaultValue
])

Implementation

List<enums.DocumentNameMatchCode>? documentNameMatchCodeNullableListFromJson(
  List? documentNameMatchCode, [
  List<enums.DocumentNameMatchCode>? defaultValue,
]) {
  if (documentNameMatchCode == null) {
    return defaultValue;
  }

  return documentNameMatchCode
      .map((e) => documentNameMatchCodeFromJson(e.toString()))
      .toList();
}