fromMap static method
Instantiates and return a new AmplifyException
from the
serialized exception data
Implementation
static AmplifyException fromMap(Map<String, String> serializedException) {
if (serializedException['message'] == null) {
throw const FormatException(
'Cannot create AmplifyException from map. Message field is missing',
);
}
return AmplifyException(
serializedException['message']!,
recoverySuggestion: serializedException['recoverySuggestion'],
underlyingException: serializedException['underlyingException'],
);
}