plaidErrorTypeListFromJson function
List<PlaidErrorType>
plaidErrorTypeListFromJson(
- List? plaidErrorType, [
- List<
PlaidErrorType> ? defaultValue
Implementation
List<enums.PlaidErrorType> plaidErrorTypeListFromJson(
List? plaidErrorType, [
List<enums.PlaidErrorType>? defaultValue,
]) {
if (plaidErrorType == null) {
return defaultValue ?? [];
}
return plaidErrorType
.map((e) => plaidErrorTypeFromJson(e.toString()))
.toList();
}