loanIdentifierTypeNullableListFromJson function

List<LoanIdentifierType>? loanIdentifierTypeNullableListFromJson(
  1. List? loanIdentifierType, [
  2. List<LoanIdentifierType>? defaultValue
])

Implementation

List<enums.LoanIdentifierType>? loanIdentifierTypeNullableListFromJson(
  List? loanIdentifierType, [
  List<enums.LoanIdentifierType>? defaultValue,
]) {
  if (loanIdentifierType == null) {
    return defaultValue;
  }

  return loanIdentifierType
      .map((e) => loanIdentifierTypeFromJson(e.toString()))
      .toList();
}