fromObject static method

SyneriseError fromObject(
  1. dynamic error
)

Implementation

static SyneriseError fromObject(dynamic error) {
  if (error is PlatformException) {
    return SyneriseError.fromException(error);
  }
  return SyneriseError.unknownError(error);
}