plaidErrorTypeListToJson function

List<String> plaidErrorTypeListToJson(
  1. List<PlaidErrorType>? plaidErrorType
)

Implementation

List<String> plaidErrorTypeListToJson(
    List<enums.PlaidErrorType>? plaidErrorType) {
  if (plaidErrorType == null) {
    return [];
  }

  return plaidErrorType.map((e) => enums.$PlaidErrorTypeMap[e]!).toList();
}