documentAuthenticityMatchCodeListFromJson function

List<DocumentAuthenticityMatchCode> documentAuthenticityMatchCodeListFromJson(
  1. List? documentAuthenticityMatchCode, [
  2. List<DocumentAuthenticityMatchCode>? defaultValue
])

Implementation

List<enums.DocumentAuthenticityMatchCode>
    documentAuthenticityMatchCodeListFromJson(
  List? documentAuthenticityMatchCode, [
  List<enums.DocumentAuthenticityMatchCode>? defaultValue,
]) {
  if (documentAuthenticityMatchCode == null) {
    return defaultValue ?? [];
  }

  return documentAuthenticityMatchCode
      .map((e) => documentAuthenticityMatchCodeFromJson(e.toString()))
      .toList();
}