errorInfo property
ErrorInfo?
get
errorInfo
A utility method to return any ErrorInfo instance from the details list.
All error responses are expected to include an ErrorInfo object.
Implementation
ErrorInfo? get errorInfo {
for (final any in details) {
if (any.typeName == ErrorInfo.fullyQualifiedName) {
return any.unpackFrom(ErrorInfo.fromJson);
}
}
return null;
}