plaidErrorTypeNullableListFromJson function

List<PlaidErrorType>? plaidErrorTypeNullableListFromJson(
  1. List? plaidErrorType, [
  2. List<PlaidErrorType>? defaultValue
])

Implementation

List<enums.PlaidErrorType>? plaidErrorTypeNullableListFromJson(
  List? plaidErrorType, [
  List<enums.PlaidErrorType>? defaultValue,
]) {
  if (plaidErrorType == null) {
    return defaultValue;
  }

  return plaidErrorType
      .map((e) => plaidErrorTypeFromJson(e.toString()))
      .toList();
}